Skip to content

Commit 371b24b

Browse files
committed
style(Command): simplify log level parsing logic
* Combine multiple lines into a single line for clarity * Maintain functionality while improving code readability
1 parent bbcaff5 commit 371b24b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Command.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ auto PrintEnvInfo() -> int {
171171
auto ParseLogLevel(const QString& log_level) -> int {
172172
// default value
173173
auto level = log_level.toLower();
174-
if (level == "none") {
175-
level = "error";
176-
}
174+
if (level == "none") level = "error";
177175

178176
if (level == "debug") {
179177
SetGFLogLevel(static_cast<int>(GFLogLevel::kDEBUG));

0 commit comments

Comments
 (0)