Skip to content

Commit

Permalink
rename res to is_good for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Jan 22, 2024
1 parent f8a0d53 commit 925b351
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/mod.nu
Original file line number Diff line number Diff line change
Expand Up @@ -404,14 +404,14 @@ export def "gm repo bisect" [
if not $no_check {
print $"checking that ($good) is good..."
^git checkout $good
let res = try {
let is_good = try {
do $test
true
} catch {
false
}
^git checkout -
if not $res {
if not $is_good {
throw-error {
msg: "invalid_good_revision",
text: "not a good revision",
Expand All @@ -421,14 +421,14 @@ export def "gm repo bisect" [

print $"checking that ($bad) is bad..."
^git checkout $bad
let res = try {
let is_good = try {
do $test
true
} catch {
false
}
^git checkout -
if $res {
if $is_good {
throw-error {
msg: "invalid_bad_revision",
text: "not a bad revision",
Expand Down

0 comments on commit 925b351

Please sign in to comment.