Skip to content

Commit

Permalink
Apply suggestion from code review - FileDataStorageManager
Browse files Browse the repository at this point in the history
Co-authored-by: Álvaro Brey <alvaro.brey@nextcloud.com>
Signed-off-by: Dariusz Olszewski <8277636+starypatyk@users.noreply.github.com>
  • Loading branch information
starypatyk and AlvaroBrey authored Dec 12, 2022
1 parent 68197de commit 6b5cdb0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ OCFile getFileByDecryptedRemotePath(String path) {

private @Nullable
OCFile getFileByPath(String type, String path) {
FileEntity fileEntity = ProviderTableMeta.FILE_PATH.equals(type) ?
final boolean shouldUseEncryptedPath = ProviderTableMeta.FILE_PATH.equals(type);
FileEntity fileEntity = shouldUseEncryptedPath ?
fileDao.getFileByEncryptedRemotePath(path, user.getAccountName()) :
fileDao.getFileByDecryptedRemotePath(path, user.getAccountName());

Expand Down

0 comments on commit 6b5cdb0

Please sign in to comment.