gofumpt lint and misc cleanup (#1682)

* gofumpt lint and misc cleanup

* Reorder fileInfo dircounts code to be clearer
This commit is contained in:
David Pedersen authored and GitHub committed 2024-04-20 21:42:28 +02:00
1 parent 6cabb0e8e4
commit a018257d50
10 files changed
+42 -45

No files matched your search

+1 -2
View File
@@ -232,7 +232,7 @@ func (app *app) writeHistory() error {
}
for _, cmd := range app.cmdHistory {
_, err = f.WriteString(fmt.Sprintf("%s %s\n", cmd.prefix, cmd.value))
_, err = fmt.Fprintf(f, "%s %s\n", cmd.prefix, cmd.value)
if err != nil {
return fmt.Errorf("writing history file: %s", err)
}
@@ -585,5 +585,4 @@ func (app *app) runShell(s string, args []string, prefix string) {
app.ui.exprChan <- &callExpr{"load", nil, 1}
}()
}
}