aboutsummaryrefslogtreecommitdiff
path: root/src/api/structures/Server.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2020-12-24 23:45:16 +0900
committerPitu <[email protected]>2020-12-24 23:45:16 +0900
commitfb2c27086f570fec60f4d52dcc9ca80e53186293 (patch)
tree4c4fd056c293b8e0de632023ef19fdea95c009fa /src/api/structures/Server.js
parentMerge pull request #228 from Zephyrrus/begone_trailing_commas (diff)
downloadhost.fuwn.me-fb2c27086f570fec60f4d52dcc9ca80e53186293.tar.xz
host.fuwn.me-fb2c27086f570fec60f4d52dcc9ca80e53186293.zip
Fix ESLint rules once and for all
Diffstat (limited to 'src/api/structures/Server.js')
-rw-r--r--src/api/structures/Server.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/api/structures/Server.js b/src/api/structures/Server.js
index 83b2880..0ef91fd 100644
--- a/src/api/structures/Server.js
+++ b/src/api/structures/Server.js
@@ -42,16 +42,16 @@ class Server {
if (ext) { ext = `.${ext.toLowerCase()}`; }
if (
- ThumbUtil.imageExtensions.indexOf(ext) > -1
- || ThumbUtil.videoExtensions.indexOf(ext) > -1
- || req.path.indexOf('_nuxt') > -1
- || req.path.indexOf('favicon.ico') > -1
+ ThumbUtil.imageExtensions.indexOf(ext) > -1 ||
+ ThumbUtil.videoExtensions.indexOf(ext) > -1 ||
+ req.path.indexOf('_nuxt') > -1 ||
+ req.path.indexOf('favicon.ico') > -1
) {
return true;
}
return false;
},
- 'stream': {
+ stream: {
write(str) { log.debug(str); }
}
}));
@@ -64,7 +64,7 @@ class Server {
}
registerAllTheRoutes() {
- jetpack.find(this.routesFolder, { matching: '*.js' }).forEach((routeFile) => {
+ jetpack.find(this.routesFolder, { matching: '*.js' }).forEach(routeFile => {
// eslint-disable-next-line import/no-dynamic-require, global-require
const RouteClass = require(path.join('../../../', routeFile));
let routes = [RouteClass];