mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Removed redundant condition
This commit is contained in:
-4
@@ -46,10 +46,6 @@ export class ReservedStringObfuscatingGuard implements IObfuscatingGuard {
|
||||
* @returns {boolean}
|
||||
*/
|
||||
private isReservedString (value: string): boolean {
|
||||
if (!this.options.reservedStrings.length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return this.options.reservedStrings
|
||||
.some((reservedString: string) => {
|
||||
return new RegExp(reservedString, 'g').exec(value) !== null;
|
||||
|
||||
Reference in New Issue
Block a user