Skip to content

Commit e5e0066

Browse files
kolyshkindims
authored andcommitted
cmd/internal/storage/bigquery/client: fix govet warning
As reported by golangci-lint v1.61.0: internal/storage/bigquery/client/client.go:231:21: printf: non-constant format string in call to fmt.Errorf (govet) return fmt.Errorf(errstr) ^ Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 5def8b2 commit e5e0066

File tree

1 file changed

+2
-1
lines changed
  • cmd/internal/storage/bigquery/client

1 file changed

+2
-1
lines changed

cmd/internal/storage/bigquery/client/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package client
1616

1717
import (
1818
"context"
19+
"errors"
1920
"flag"
2021
"fmt"
2122
"os"
@@ -228,7 +229,7 @@ func (c *Client) InsertRow(rowData map[string]interface{}) error {
228229
errstr += fmt.Sprintf("Error inserting row %d: %+v\n", errors.Index, errorproto)
229230
}
230231
}
231-
return fmt.Errorf(errstr)
232+
return errors.New(errstr)
232233
}
233234
return nil
234235
}

0 commit comments

Comments
 (0)