Skip to content

Commit

Permalink
fix go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Feb 18, 2024
1 parent ced24ea commit 9e48f83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/vinegar/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func NewBinary(bt roblox.BinaryType, cfg *config.Config) (*Binary, error) {
func (b *Binary) Main(args ...string) int {
logFile, err := LogFile(b.Type.String())
if err != nil {
slog.Error(fmt.Sprintf("create log file: %w", err))
slog.Error(fmt.Sprintf("create log file: %s", err))
return 1
}
defer logFile.Close()
Expand All @@ -137,7 +137,7 @@ func (b *Binary) Main(args ...string) int {
// The splash window didn't close cleanly (ErrClosed), an
// internal error occured, and vinegar cannot continue.
if err != nil {
slog.Error(fmt.Sprintf("splash: %w", err))
slog.Error(fmt.Sprintf("splash: %s", err))
logFile.Close()
os.Exit(1)
}
Expand Down
2 changes: 0 additions & 2 deletions splash/splash.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,4 @@ func (ui *Splash) Run() error {
e.Frame(gtx.Ops)
}
}

return nil
}

0 comments on commit 9e48f83

Please sign in to comment.