mirror of https://github.com/zlatinb/muwire
remove unnecessary canonicalization
parent
3c2d6e3952
commit
aa2b80cc0d
|
@ -80,7 +80,6 @@ abstract class BasePersisterService extends Service{
|
||||||
throw new IllegalArgumentException()
|
throw new IllegalArgumentException()
|
||||||
|
|
||||||
def file = new File(DataUtil.readi18nString(Base64.decode(json.file)))
|
def file = new File(DataUtil.readi18nString(Base64.decode(json.file)))
|
||||||
file = file.getCanonicalFile()
|
|
||||||
if (!file.exists() || file.isDirectory() || file.length() == 0 || !file.canRead())
|
if (!file.exists() || file.isDirectory() || file.length() == 0 || !file.canRead())
|
||||||
return null
|
return null
|
||||||
long length = Long.valueOf(json.length)
|
long length = Long.valueOf(json.length)
|
||||||
|
|
Loading…
Reference in New Issue