Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 authored Jul 18, 2024
1 parent b08b5e4 commit 482c408
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/backend/src/server/api/stream/channels/antenna.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AntennaChannel extends Channel {

@bindThis
public async init(params: JsonObject) {
if (typeof params.antennaId != 'string') return;
if (typeof params.antennaId !== 'string') return;
this.antennaId = params.antennaId;

// Subscribe stream
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/server/api/stream/channels/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ChannelChannel extends Channel {

@bindThis
public async init(params: JsonObject) {
if (typeof params.channelId != 'string') return;
if (typeof params.channelId !== 'string') return;
this.channelId = params.channelId;

// Subscribe stream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ReversiGameChannel extends Channel {

@bindThis
public async init(params: JsonObject) {
if (typeof params.gameId != 'string') return;
if (typeof params.gameId !== 'string') return;
this.gameId = params.gameId;

this.subscriber.on(`reversiGameStream:${this.gameId}`, this.send);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class RoleTimelineChannel extends Channel {

@bindThis
public async init(params: JsonObject) {
if (typeof params.roleId != 'string') return;
if (typeof params.roleId !== 'string') return;
this.roleId = params.roleId;

this.subscriber.on(`roleTimelineStream:${this.roleId}`, this.onEvent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class UserListChannel extends Channel {

@bindThis
public async init(params: JsonObject) {
if (typeof params.listId != 'string') return;
if (typeof params.listId !== 'string') return;
this.listId = params.listId;
this.withFiles = !!(params.withFiles ?? false);
this.withRenotes = !!(params.withRenotes ?? true);
Expand Down

0 comments on commit 482c408

Please sign in to comment.