mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Updated TSLint rules
This commit is contained in:
@@ -84,13 +84,15 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
|
||||
private static filterOptions (options: TInputCLIOptions): TInputOptions {
|
||||
const filteredOptions: TInputOptions = {};
|
||||
|
||||
for (const option in options) {
|
||||
if (!options.hasOwnProperty(option) || options[option] === undefined) {
|
||||
continue;
|
||||
}
|
||||
Object
|
||||
.keys(options)
|
||||
.forEach((option: keyof TInputCLIOptions) => {
|
||||
if (options[option] === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
filteredOptions[option] = options[option];
|
||||
}
|
||||
filteredOptions[option] = options[option];
|
||||
});
|
||||
|
||||
return filteredOptions;
|
||||
}
|
||||
@@ -153,7 +155,9 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
|
||||
const canShowHelp: boolean = !this.arguments.length || this.arguments.includes('--help');
|
||||
|
||||
if (canShowHelp) {
|
||||
return this.commands.outputHelp();
|
||||
this.commands.outputHelp();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
const sourceCodeData: TSourceCodeData = new SourceCodeReader(this.inputCLIOptions)
|
||||
|
||||
Reference in New Issue
Block a user