feat(eslint): tame the beast
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
4424c456a9
commit
2ae2f04f0a
9
modules/API/external/external_api.js
vendored
9
modules/API/external/external_api.js
vendored
@@ -114,10 +114,10 @@ function parseArguments(args) {
|
||||
|
||||
switch (typeof firstArg) {
|
||||
case 'string': // old arguments format
|
||||
case undefined: // eslint-disable-line no-case-declarations
|
||||
// not sure which format but we are trying to parse the old
|
||||
// format because if the new format is used everything will be undefined
|
||||
// anyway.
|
||||
case undefined: {
|
||||
// Not sure which format but we are trying to parse the old
|
||||
// format because if the new format is used everything will be undefined
|
||||
// anyway.
|
||||
const [
|
||||
roomName,
|
||||
width,
|
||||
@@ -141,6 +141,7 @@ function parseArguments(args) {
|
||||
jwt,
|
||||
onload
|
||||
};
|
||||
}
|
||||
case 'object': // new arguments format
|
||||
return args[0];
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user