Skip to content

Commit

Permalink
go vet fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos committed Jun 17, 2024
1 parent 8bbb488 commit c6ce1d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/embeddedctl/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var (
return nil, fmt.Errorf("failed to retrieve snapshot: %w", err)
}
if err := os.WriteFile(args[0], b, 0600); err != nil {
return nil, fmt.Errorf("failed to write snapshot to %q: %w", err)
return nil, fmt.Errorf("failed to write snapshot to %q: %w", args[0], err)
}
return map[string]any{"size": len(b), "file": args[0]}, nil
}),
Expand Down
2 changes: 1 addition & 1 deletion pkg/embedded/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (e *embedded) ensurePeerInCluster(ctx context.Context) (string, error) {

defer func() {
if err := e.createSentinel(); err != nil {
panic(fmt.Sprintf("failed to create sentinel file: %w", err.Error()))
panic(fmt.Sprintf("failed to create sentinel file: %v", err.Error()))
}
}()

Expand Down

0 comments on commit c6ce1d9

Please sign in to comment.