Skip to content

Commit e82e5fb

Browse files
committed
Run gofumpt on this codebase
Signed-off-by: Thomas Stromberg <[email protected]>
1 parent a21113d commit e82e5fb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lint-install.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func updateMakefile(root string, cfg Config, dryRun bool) (string, error) {
128128
edits := myers.ComputeEdits("Makefile", string(existing), string(proposed))
129129
change := gotextdiff.ToUnified(filepath.Base(dest), filepath.Base(dest), string(existing), edits)
130130
if !dryRun {
131-
if err := os.WriteFile(dest, proposed, 0755); err != nil {
131+
if err := os.WriteFile(dest, proposed, 0o755); err != nil {
132132
return "", err
133133
}
134134
}
@@ -154,7 +154,7 @@ func updateGoLint(root string, dryRun bool) (string, error) {
154154
change := gotextdiff.ToUnified(filepath.Base(dest), filepath.Base(dest), string(existing), edits)
155155

156156
if !dryRun {
157-
if err := os.WriteFile(dest, goLintConfig, 0755); err != nil {
157+
if err := os.WriteFile(dest, goLintConfig, 0o755); err != nil {
158158
return "", err
159159
}
160160
}
@@ -176,7 +176,6 @@ func goLintCmd(root string, level string) string {
176176
},
177177
Unsorted: true,
178178
})
179-
180179
if err != nil {
181180
klog.Errorf("unable to find go.mod files: %v", err)
182181
}

0 commit comments

Comments
 (0)