Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report: remove unnecessary return in setters #26614

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/internal/process/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ const report = {
},
set directory(dir) {
validateString(dir, 'directory');
return nr.setDirectory(dir);
nr.setDirectory(dir);
},
get filename() {
return nr.getFilename();
},
set filename(name) {
validateString(name, 'filename');
return nr.setFilename(name);
nr.setFilename(name);
},
get signal() {
return nr.getSignal();
Expand All @@ -51,7 +51,7 @@ const report = {
convertToValidSignal(sig); // Validate that the signal is recognized.
removeSignalHandler();
addSignalHandler(sig);
return nr.setSignal(sig);
nr.setSignal(sig);
},
get reportOnFatalError() {
return nr.shouldReportOnFatalError();
Expand All @@ -60,7 +60,7 @@ const report = {
if (typeof trigger !== 'boolean')
throw new ERR_INVALID_ARG_TYPE('trigger', 'boolean', trigger);

return nr.setReportOnFatalError(trigger);
nr.setReportOnFatalError(trigger);
},
get reportOnSignal() {
return nr.shouldReportOnSignal();
Expand All @@ -80,7 +80,7 @@ const report = {
if (typeof trigger !== 'boolean')
throw new ERR_INVALID_ARG_TYPE('trigger', 'boolean', trigger);

return nr.setReportOnUncaughtException(trigger);
nr.setReportOnUncaughtException(trigger);
}
};

Expand Down