Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 13, 2024
1 parent 64f73b4 commit 1fe8759
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1431,8 +1431,7 @@ void Task::validate(bool applyDefault /* = true */) {
Lexer::Type type;
// `uuid` is not a property in the TaskChampion model, so an invalid UUID is
// actually an error.
if (!lex.isUUID(token, type, true))
throw format("Not a valid UUID '{1}'.", uid);
if (!lex.isUUID(token, type, true)) throw format("Not a valid UUID '{1}'.", uid);
} else
set("uuid", uuid());

Expand Down

0 comments on commit 1fe8759

Please sign in to comment.