Skip to content

Commit

Permalink
Unused function removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
haimgel committed Oct 29, 2023
1 parent edd4502 commit a20c0f0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cmd/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,7 @@ func (app *Application) parseStatus(status string) (*StatusConfig, error) {
return config, nil
}
}
return nil, fmt.Errorf("status '%s' is not found in the configuration")
}

func (app *Application) checkError(err error, code int) {
if err != nil {
_, _ = fmt.Fprintf(os.Stderr, "Error: %s\n", err)
app.exit(code)
}
return nil, fmt.Errorf("status '%s' is not found in the configuration", status)
}

func defaultConfigFilePath() string {
Expand Down

0 comments on commit a20c0f0

Please sign in to comment.