Skip to content

Commit

Permalink
Remove invalid argument when writing to stream
Browse files Browse the repository at this point in the history
The second argument of `stream.Writable.write()` is the encoding of the
chunk. Node 14 didn't seem to mind that it was set to `true`, which is
invalid, but Node 18 does and throws an error as a result.
  • Loading branch information
11k committed Jun 19, 2023
1 parent bf527d1 commit 01488e2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/commands/implementations/mute.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ function mute(input, services) {
parsedDuration,
`Muting: ${userToPunish} for ${formatDuration(moment.duration(parsedDuration, 'seconds'))}`,
),
true,
);
});
return new CommandOutput(null, null);
Expand Down
1 change: 0 additions & 1 deletion lib/commands/implementations/mutelinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ function mutelinks(defaultPunishmentDuration) {
muteDuration,
`${data.user} muted for ${formattedDuration} for posting a link while link muting is on.`,
),
true,
);
});
const displayState = state === 'all' ? 'on for all links' : state;
Expand Down

0 comments on commit 01488e2

Please sign in to comment.