Indent switch case

This commit is contained in:
Ajay Ramachandran
2021-08-02 16:25:04 -04:00
parent 3368615a77
commit 3a8076fc3c
5 changed files with 31 additions and 30 deletions

View File

@@ -24,6 +24,6 @@ module.exports = {
"prefer-template": "warn",
"quotes": ["warn", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
"no-multiple-empty-lines": ["error", { max: 2, maxEOF: 0 }],
"indent": ["warn", 4],
"indent": ["warn", 4, { "SwitchCase": 1 }],
},
};

View File

@@ -472,6 +472,7 @@ async function updateDataIfVideoDurationChange(videoID: VideoID, service: string
// Disable max submissions for now
// Disable IP ratelimiting for now
// eslint-disable-next-line @typescript-eslint/no-unused-vars
async function checkRateLimit(userID:string, videoID: VideoID, timeSubmitted: number, hashedIP: string, options: {
enableCheckByIP: boolean;
enableCheckByUserID: boolean;