Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
Signed-off-by: Joeyyy09 <imt_2021063@iiitm.ac.in>
  • Loading branch information
joeyyy09 committed May 17, 2024
1 parent 270971e commit d5984c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/kwok/server/debugging_logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,10 @@ func readLogs(ctx context.Context, logsFile string, opts *logOptions, stdout, st

if recreated {
newF, err := os.Open(logsFile)
if err != nil && !os.IsNotExist(err) {
if err != nil {
if os.IsNotExist(err) {
continue
}
return fmt.Errorf("failed to open log file %q: %w", logsFile, err)
}

Expand Down

0 comments on commit d5984c8

Please sign in to comment.