Skip to content

Commit 3d813e1

Browse files
committed
fix: run lint
1 parent 526a5b0 commit 3d813e1

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import {
3030
import * as draft from "./draft"
3131
import {FullError} from "./errors"
3232

33-
3433
/**
3534
* A type representing the messages that are returned inside promises by
3635
* {@link Readable.receive}().

src/socket.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ void Socket::WarnUnlessImmediateOption(int32_t option) const {
218218

219219
if (immediate.count(option) != 0) return;
220220
if (endpoints == 0 && state == State::Open) return;
221-
//Warn(Env(), "Socket option will not take effect until next connect/bind.");
221+
// Warn(Env(), "Socket option will not take effect until next connect/bind.");
222222
}
223223

224224
bool Socket::ValidateOpen() const {

src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type SocketMethods = "send" | "receive" | "join" | "leave"
1010
export function allowMethods(socketPrototype: any, methods: SocketMethods[]) {
1111
const toDelete = ["send", "receive", "join", "leave"] as SocketMethods[]
1212
for (const method of toDelete) {
13-
if (methods.indexOf(method) !== -1) {
13+
if (methods.includes(method)) {
1414
delete socketPrototype[method]
1515
}
1616
}

0 commit comments

Comments
 (0)