Skip to content

Commit

Permalink
reviewdog edits
Browse files Browse the repository at this point in the history
  • Loading branch information
defbin committed Nov 2, 2024
1 parent b5f5aa4 commit 652a686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/pbm/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func handleDiagnostic(
opts diagnosticOptions,
) (fmt.Stringer, error) {
err := sdk.Diagnostic(ctx, pbm, opts.opid, opts.path)
return outMsg{}, err
return outMsg{""}, err
}

type statusOptions struct {
Expand Down
2 changes: 1 addition & 1 deletion sdk/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func WaitForResync(ctx context.Context, c *Client, cid CommandID) error {
}
}

func Diagnostic(ctx context.Context, c *Client, cid string, dirname string) error {
func Diagnostic(ctx context.Context, c *Client, cid, dirname string) error {
if fileInfo, err := os.Stat(dirname); err != nil {
if !os.IsNotExist(err) {
return errors.Wrap(err, "stat")
Expand Down

0 comments on commit 652a686

Please sign in to comment.