summaryrefslogtreecommitdiff
path: root/src/api/serializers
diff options
context:
space:
mode:
authorotofune <otofune@gmail.com>2017-11-06 16:11:24 +0900
committerotofune <otofune@gmail.com>2017-11-06 16:11:24 +0900
commitb266ed3e4f98ab16d95e52cff517d6519b78742a (patch)
treedc5a65e26e970a17979e6193f877621c965fe831 /src/api/serializers
parentfix (diff)
downloadsharkey-b266ed3e4f98ab16d95e52cff517d6519b78742a.tar.gz
sharkey-b266ed3e4f98ab16d95e52cff517d6519b78742a.tar.bz2
sharkey-b266ed3e4f98ab16d95e52cff517d6519b78742a.zip
fix
Diffstat (limited to 'src/api/serializers')
-rw-r--r--src/api/serializers/drive-file.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/serializers/drive-file.ts b/src/api/serializers/drive-file.ts
index 9858c3b3c7..e749f80387 100644
--- a/src/api/serializers/drive-file.ts
+++ b/src/api/serializers/drive-file.ts
@@ -25,8 +25,6 @@ export default (
detail: false
}, options);
- if (!file) return reject('invalid file arg.')
-
let _file: any;
// Populate the file if 'file' is ID
@@ -42,6 +40,8 @@ export default (
_file = deepcopy(file);
}
+ if (!_file) return reject('invalid file arg.')
+
// rendered target
let _target: any = {};