summaryrefslogtreecommitdiff
path: root/src/api/endpoints/drive
diff options
context:
space:
mode:
authorotofune <otofune@gmail.com>2017-11-06 16:32:01 +0900
committerotofune <otofune@gmail.com>2017-11-06 16:32:01 +0900
commitd5cc4cc9c28eb6a981ce37859def97cd7c57abc6 (patch)
treebd9716aa1943210968456940f594b831e3556c68 /src/api/endpoints/drive
parentremove console (diff)
downloadsharkey-d5cc4cc9c28eb6a981ce37859def97cd7c57abc6.tar.gz
sharkey-d5cc4cc9c28eb6a981ce37859def97cd7c57abc6.tar.bz2
sharkey-d5cc4cc9c28eb6a981ce37859def97cd7c57abc6.zip
fix lint (automattic)
Diffstat (limited to 'src/api/endpoints/drive')
-rw-r--r--src/api/endpoints/drive/files.ts2
-rw-r--r--src/api/endpoints/drive/files/show.ts2
-rw-r--r--src/api/endpoints/drive/files/update.ts3
3 files changed, 3 insertions, 4 deletions
diff --git a/src/api/endpoints/drive/files.ts b/src/api/endpoints/drive/files.ts
index 035916b309..53b48a8bec 100644
--- a/src/api/endpoints/drive/files.ts
+++ b/src/api/endpoints/drive/files.ts
@@ -63,5 +63,5 @@ module.exports = async (params, user, app) => {
// Serialize
const _files = await Promise.all(files.map(file => serialize(file)));
- return _files
+ return _files;
};
diff --git a/src/api/endpoints/drive/files/show.ts b/src/api/endpoints/drive/files/show.ts
index 0a19b19939..3c7cf774f9 100644
--- a/src/api/endpoints/drive/files/show.ts
+++ b/src/api/endpoints/drive/files/show.ts
@@ -33,5 +33,5 @@ module.exports = async (params, user) => {
detail: true
});
- return _file
+ return _file;
};
diff --git a/src/api/endpoints/drive/files/update.ts b/src/api/endpoints/drive/files/update.ts
index 7a6d2562fb..4e56b30ace 100644
--- a/src/api/endpoints/drive/files/update.ts
+++ b/src/api/endpoints/drive/files/update.ts
@@ -20,7 +20,6 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
const [fileId, fileIdErr] = $(params.file_id).id().$;
if (fileIdErr) return rej('invalid file_id param');
-
// Fetch file
const file = await DriveFile
.findOne({
@@ -32,7 +31,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
return rej('file-not-found');
}
- const updateQuery: any = {}
+ const updateQuery: any = {};
// Get 'name' parameter
const [name, nameErr] = $(params.name).optional.string().pipe(validateFileName).$;