[bin] fixes an error in golangci-lintw
This commit is contained in:
parent
32472aaf4a
commit
148726f8c6
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ set capture false
|
||||||
|
|
||||||
golangci-lint $argv[1..-2] | while read --local --line line
|
golangci-lint $argv[1..-2] | while read --local --line line
|
||||||
if string match --quiet --regex '^.+:[0-9]+:' $line
|
if string match --quiet --regex '^.+:[0-9]+:' $line
|
||||||
if test $file = (string match --regex '[^:]+' $line)
|
set -l lineFilename (string match --regex '[^:]+' $line)
|
||||||
|
if test $file = $lineFilename -o $file = (pwd)/$lineFilename
|
||||||
set capture true
|
set capture true
|
||||||
else
|
else
|
||||||
set capture false
|
set capture false
|
||||||
|
|
Loading…
Add table
Reference in a new issue