Skip to content

Commit ec23881

Browse files
committed
lintcmd: don't accidentally shadow variable in type assertion
(cherry picked from commit 5be6941)
1 parent 1adb261 commit ec23881

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lintcmd/cmd.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ func (cmd *Command) Run() {
393393
var err error
394394
bconfs, err = parseBuildConfigs(os.Stdin)
395395
if err != nil {
396-
if err, ok := err.(parseBuildConfigError); ok {
397-
fmt.Fprintf(os.Stderr, "<stdin>:%d couldn't parse build matrix: %s\n", err.line, err.err)
396+
if perr, ok := err.(parseBuildConfigError); ok {
397+
fmt.Fprintf(os.Stderr, "<stdin>:%d couldn't parse build matrix: %s\n", perr.line, perr.err)
398398
} else {
399399
fmt.Fprintln(os.Stderr, err)
400400
}

0 commit comments

Comments
 (0)