remove unnecessary canonicalization

pull/62/head
Zlatin Balevsky 2021-06-09 12:48:47 +01:00
parent 3c2d6e3952
commit aa2b80cc0d
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 0 additions and 1 deletions

View File

@ -80,7 +80,6 @@ abstract class BasePersisterService extends Service{
throw new IllegalArgumentException()
def file = new File(DataUtil.readi18nString(Base64.decode(json.file)))
file = file.getCanonicalFile()
if (!file.exists() || file.isDirectory() || file.length() == 0 || !file.canRead())
return null
long length = Long.valueOf(json.length)