Skip to content

Commit

Permalink
Fix SC2155 (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
reegnz authored Nov 10, 2023
1 parent 60d3b6f commit ade894f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jq.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ __get_query() {
}

jq-complete() {
local query="$(__get_query)"
local query
query="$(__get_query)"
local ret=$?
if [ -n "$query" ]; then
LBUFFER="${LBUFFER} | ${JQ_REPL_JQ:-jq}"
Expand Down

0 comments on commit ade894f

Please sign in to comment.