Skip to content

Commit 948296d

Browse files
committed
jim-regexp.c: clean up some inconsistent whitespace
Signed-off-by: Steve Bennett <[email protected]>
1 parent 00b27e1 commit 948296d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jim-regexp.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -454,12 +454,12 @@ int Jim_RegsubCmd(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
454454
return JIM_USAGE;
455455
}
456456

457-
/* Need to ensure that this is unshared, so just duplicate it always */
457+
/* Need to ensure that this is unshared, so just duplicate it always */
458458
regcomp_obj = Jim_DuplicateObj(interp, argv[i]);
459-
Jim_IncrRefCount(regcomp_obj);
459+
Jim_IncrRefCount(regcomp_obj);
460460
regex = SetRegexpFromAny(interp, regcomp_obj, regcomp_flags);
461461
if (!regex) {
462-
Jim_DecrRefCount(interp, regcomp_obj);
462+
Jim_DecrRefCount(interp, regcomp_obj);
463463
return JIM_ERR;
464464
}
465465
pattern = Jim_String(argv[i]);
@@ -469,7 +469,7 @@ int Jim_RegsubCmd(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
469469
cmd_prefix = argv[i + 2];
470470
if (Jim_ListLength(interp, cmd_prefix) == 0) {
471471
Jim_SetResultString(interp, "command prefix must be a list of at least one element", -1);
472-
Jim_DecrRefCount(interp, regcomp_obj);
472+
Jim_DecrRefCount(interp, regcomp_obj);
473473
return JIM_ERR;
474474
}
475475
Jim_IncrRefCount(cmd_prefix);
@@ -655,7 +655,7 @@ int Jim_RegsubCmd(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
655655
Jim_DecrRefCount(interp, cmd_prefix);
656656
}
657657

658-
Jim_DecrRefCount(interp, regcomp_obj);
658+
Jim_DecrRefCount(interp, regcomp_obj);
659659

660660
return result;
661661
}

0 commit comments

Comments
 (0)