Skip to content

Commit 206be19

Browse files
committed
bazel/packaging: error strings should not be capitalized
from golangci-lint: ``` Error: /home/runner/work/redpanda/redpanda/bazel/packaging/tool.go:180:11: ST1005: error strings should not be capitalized (staticcheck) return fmt.Errorf("Error creating directory %s: %v", path, err) ```
1 parent 89eec62 commit 206be19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bazel/packaging/tool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,14 @@ func createPackageDir(cfg pkgConfig, output string) error {
194194

195195
dir := func(path string) error {
196196
if err := os.Mkdir(filepath.Join(output, path), 0755); err != nil {
197-
return fmt.Errorf("Error creating directory %s: %v", path, err)
197+
return fmt.Errorf("error creating directory %s: %v", path, err)
198198
}
199199
return nil
200200
}
201201

202202
file := func(fileConfig fileConfig) error {
203203
if err := copyFile(fileConfig.SourcePath, filepath.Join(output, fileConfig.Path, fileConfig.Name)); err != nil {
204-
return fmt.Errorf("Error copying file %s: %v", fileConfig.SourcePath, err)
204+
return fmt.Errorf("error copying file %s: %v", fileConfig.SourcePath, err)
205205
}
206206
return nil
207207
}

0 commit comments

Comments
 (0)