From 12ce81b2bc058edc8b03f8a57b75fdb6ce825d8a Mon Sep 17 00:00:00 2001 From: Zuzanna Date: Fri, 30 May 2025 12:46:55 +0200 Subject: [PATCH] Removed redundant code --- www/common/drive-ui.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index f8c6f7ec3..8f47d673f 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -1250,8 +1250,7 @@ define([ var secret = Hash.getSecrets(parsed.type, parsed.hash, data.password); var opts = {}; if (isRo) { opts.view = true; } - var auditorKey = parsed.hashData.auditorKey ? parsed.hashData.auditorKey : undefined; - var hash = Hash.getHiddenHashFromKeys(parsed.type, secret, opts, auditorKey); + var hash = Hash.getHiddenHashFromKeys(parsed.type, secret, opts, parsed.hashData.auditorKey); var hiddenHref = Hash.hashToHref(hash, parsed.type); common.openURL(Hash.getNewPadURL(hiddenHref, obj)); };