Skip to content

Commit 126d4d4

Browse files
committed
address review comments
1 parent 828adc2 commit 126d4d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/subcommand/status_subcommand.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ void status_subcommand::run()
301301
// }
302302
// }
303303

304-
if (!sl.has_tobecommited_header() & (sl.has_notstagged_header() | sl.has_untracked_header()))
304+
if (!sl.has_tobecommited_header() && (sl.has_notstagged_header() || sl.has_untracked_header()))
305305
{
306306
if (sl.has_untracked_header())
307307
{
@@ -313,7 +313,7 @@ void status_subcommand::run()
313313
}
314314
}
315315

316-
if (!sl.has_notstagged_header() & !sl.has_untracked_header())
316+
if (!sl.has_notstagged_header() && !sl.has_untracked_header())
317317
{
318318
std::cout << uptodate_msg << std::endl;
319319
}

0 commit comments

Comments
 (0)