Skip to content

Commit

Permalink
Use empty instead of length <= 0
Browse files Browse the repository at this point in the history
  • Loading branch information
frmdstryr committed Dec 2, 2024
1 parent 39e361b commit 4e7b0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imp/imp_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static void expect_dir_arg(const std::vector<std::string> &filenames, const char

static void expect_pool_env(const std::string &pool_base_path)
{
if (pool_base_path.length() <= 0) {
if (pool_base_path.empty()) {
g_warning("HORIZON_POOL dir env var is not set");
}
else if (!Glib::file_test(pool_base_path, Glib::FILE_TEST_EXISTS)) {
Expand Down

0 comments on commit 4e7b0e5

Please sign in to comment.