Skip to content

Commit a0b6077

Browse files
committed
chore(process): change the return value
1 parent 3b61bb2 commit a0b6077

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

process/process_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ func (p *Process) OpenFilesWithContext(ctx context.Context) ([]OpenFilesStat, er
752752
fileExists[fileName] = true
753753
}
754754
case <-ctx.Done():
755-
return files, nil
755+
return files, ctx.Err()
756756
}
757757
}
758758

v3/process/process_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ func (p *Process) OpenFilesWithContext(ctx context.Context) ([]OpenFilesStat, er
739739
fileExists[fileName] = true
740740
}
741741
case <-ctx.Done():
742-
return files, nil
742+
return files, ctx.Err()
743743
}
744744
}
745745

0 commit comments

Comments
 (0)