Skip to content

Commit

Permalink
style(lql.go): simplify boolean logic to not need true/false explicitly
Browse files Browse the repository at this point in the history
pass the linter
  • Loading branch information
emmaisadev committed Jul 20, 2023
1 parent c300b89 commit 1174596
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/cmd/lql.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func inputQueryFromEditor(action string) (query string, err error) {
FileName: "query*.yaml",
}

if (action == "create" || action == "run") && queryCmdState.EmptyTemplate == false {
if (action == "create" || action == "run") && !queryCmdState.EmptyTemplate {
prompt.Default = `queryId: YourQueryID
queryText: |-
{
Expand All @@ -318,7 +318,7 @@ queryText: |-
}`
prompt.HideDefault = true
prompt.AppendDefault = true
} else if (action == "create" || action == "run") && queryCmdState.EmptyTemplate == true {
} else if (action == "create" || action == "run") && queryCmdState.EmptyTemplate {
prompt.Default = ``
prompt.HideDefault = true
prompt.AppendDefault = true
Expand Down

0 comments on commit 1174596

Please sign in to comment.