refactor: unneeded extra check

This commit is contained in:
zx 2023-11-13 20:58:09 -05:00 committed by GitHub
parent 52ea324129
commit 673fb8f8dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -219,7 +219,7 @@ export class MainTerminal extends InteractiveTerminal {
// Check if the command is allowed // Check if the command is allowed
const cmdParts = input.split(" "); const cmdParts = input.split(" ");
const executable = cmdParts[0].trim(); const executable = cmdParts[0].trim();
const knownOperators = ["&&", "||", "&", ";"]; const knownOperators = ["||", "&", ";"];
log.debug("console", "Executable: " + executable); log.debug("console", "Executable: " + executable);
log.debug("console", "Executable length: " + executable.length); log.debug("console", "Executable length: " + executable.length);