mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Fixed errors
This commit is contained in:
parent
f01c0adee2
commit
e500cfae75
3 changed files with 6 additions and 8 deletions
|
@ -173,7 +173,7 @@ const FlowControl = {
|
|||
jmpIndex = FlowControl._getLabelIndex(ings[0], state),
|
||||
maxJumps = ings[1];
|
||||
|
||||
if (state.numJumps >= maxJumps || jmpIndex == -1) {
|
||||
if (state.numJumps >= maxJumps || jmpIndex === -1) {
|
||||
return state;
|
||||
}
|
||||
|
||||
|
@ -201,7 +201,7 @@ const FlowControl = {
|
|||
jmpIndex = FlowControl._getLabelIndex(ings[2], state),
|
||||
maxJumps = ings[3];
|
||||
|
||||
if (state.numJumps >= maxJumps || jmpIndex == -1) {
|
||||
if (state.numJumps >= maxJumps || jmpIndex === -1) {
|
||||
return state;
|
||||
}
|
||||
|
||||
|
@ -228,7 +228,7 @@ const FlowControl = {
|
|||
let index = -1;
|
||||
for (let o = 0; o < state.opList.length; o++) {
|
||||
let operation = state.opList[o];
|
||||
if (operation.getConfig()["op"] === "Label"){
|
||||
if (operation.getConfig().op === "Label"){
|
||||
let ings = operation.getIngValues();
|
||||
if (name === ings[0]) {
|
||||
index = o;
|
||||
|
@ -240,8 +240,6 @@ const FlowControl = {
|
|||
},
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Return operation.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue