Skip to content

Commit

Permalink
t-advise: remove possibly useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscool committed Jan 10, 2024
1 parent dba26db commit 2097ca1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions t/unit-tests/t-advise.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,12 @@ static void check_advise_if_enabled(const char *argv, const char *conf_val, cons
check_str(actual.buf, expect);
strbuf_release(&actual);

// Delete the output.txt file after the check is done
if (!check(remove(out_file) == 0))
test_msg("Error deleting %s", out_file);
}

int cmd_main(int argc, const char **argv) {
setenv("GIT_DISCOVERY_ACROSS_FILESYSTEM", "1", 1);
setenv("TERM", "dumb", 1);
setup_git_directory();

TEST(check_advise_if_enabled(advice_msg, NULL, expect_advice_msg),
"advice should be printed when config variable is unset");
Expand Down

0 comments on commit 2097ca1

Please sign in to comment.