Skip to content

Commit

Permalink
refactor: tasklist empty
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Nov 21, 2023
1 parent 398cc2c commit e09cbcc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ int main([[maybe_unused]] int argc, char** argv)
std::vector<Task> tasklist = tasks.get_config_tasklist();

if (tasklist.empty()) {
std::cerr << "Task empty" << std::endl;
mpause();
return 1;
std::cout << "Tasklist Empty" << std::endl;
return 0;
}

const auto cur_dir = std::filesystem::path(argv[0]).parent_path();
Expand Down

0 comments on commit e09cbcc

Please sign in to comment.