Skip to content

Commit b66c01b

Browse files
committed
Syntax fix
1 parent c52e8b4 commit b66c01b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

internal/commands/loglevel/set.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ Description:
9191
}
9292
if len(parsedArgs) == 0 {
9393
return nil
94-
}component
94+
}
9595

96+
component := ""
9697
if passedComponent := parsedArgs["--component"]; passedComponent != nil {
9798
component = passedComponent.(string)
9899
}

internal/commands/loglevel/unset.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ Description:
7979
return nil
8080
}
8181

82+
component := ""
8283
if passedComponent := parsedArgs["--component"]; passedComponent != nil {
8384
component = passedComponent.(string)
8485
}

0 commit comments

Comments
 (0)