From 925b351575112650f0001ec04a8a969b3fc7a0a0 Mon Sep 17 00:00:00 2001 From: amtoine Date: Mon, 22 Jan 2024 19:06:53 +0100 Subject: [PATCH] rename `res` to `is_good` for clarity --- pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/mod.nu | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/mod.nu b/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/mod.nu index 83bcb01..f09454a 100644 --- a/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/mod.nu +++ b/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/mod.nu @@ -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", @@ -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",