Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
siepra committed Apr 24, 2023
1 parent 5967da0 commit 05bda44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/backend/src/registration/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const sendCertificateRegistrationRequest = async (
}
}

const registrarResponse: { certificate: string; peers: string[]; rootCa: string, ownerCert: string } =
const registrarResponse: { certificate: string; peers: string[]; rootCa: string; ownerCert: string } =
await response.json()

log(`Sending user certificate (${communityId})`)
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/storage/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export class Storage extends EventEmitter {
const isDeleted = !Object.keys(this.channels.all).includes(e as string)
if (isDeleted) {
console.log('deleting channel')
this.deleteChannel({channel: e})
void this.deleteChannel({ channel: e })
}
})

Expand Down Expand Up @@ -491,7 +491,7 @@ export class Storage extends EventEmitter {
await this.channels.load({ fetchEntryTimeout: 15000 })
const channel = this.channels.get(payload.channel)
if (channel) {
this.channels.del(payload.channel)
void this.channels.del(payload.channel)
}
// Send message to channel that it has been deleted, but how to ensure that everyone replicated
// Create special channel for mod messages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const DeleteChannel: FC = () => {
const dispatch = useDispatch()

const deleteChannel = useCallback(() => {
dispatch(publicChannels.actions.deleteChannel({channel: channel.name}))
dispatch(publicChannels.actions.deleteChannel({ channel: channel.name }))
modal.handleClose() // Close self
}, [modal])

Expand Down

0 comments on commit 05bda44

Please sign in to comment.