Skip to content

Commit

Permalink
chore(process): change the return value
Browse files Browse the repository at this point in the history
  • Loading branch information
kestrelcjx committed Nov 20, 2021
1 parent 3b61bb2 commit a0b6077
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion process/process_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ func (p *Process) OpenFilesWithContext(ctx context.Context) ([]OpenFilesStat, er
fileExists[fileName] = true
}
case <-ctx.Done():
return files, nil
return files, ctx.Err()
}
}

Expand Down
2 changes: 1 addition & 1 deletion v3/process/process_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ func (p *Process) OpenFilesWithContext(ctx context.Context) ([]OpenFilesStat, er
fileExists[fileName] = true
}
case <-ctx.Done():
return files, nil
return files, ctx.Err()
}
}

Expand Down

0 comments on commit a0b6077

Please sign in to comment.