Skip to content

Commit 10d059e

Browse files
committed
improvment for condition
1 parent 6ae5ed4 commit 10d059e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/version_weaver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace version_weaver {
77
bool validate(std::string_view version) { return parse(version).has_value(); }
88

99
std::string coerce(const std::string& version) {
10-
if (version.empty() || std::all_of(version.begin(), version.end(), isspace)) {
10+
if (version.empty()) {
1111
return "0.0.0";
1212
}
1313

0 commit comments

Comments
 (0)