Skip to content

Commit d70ab64

Browse files
committed
fix(desktop): use strict null check in updater test mock
1 parent ec84c8d commit d70ab64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/desktop/tests/updater.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ vi.mock('electron-updater', () => ({
2020
return this._channel
2121
},
2222
set channel(value: string | null) {
23-
if (this._channel != null) {
23+
if (this._channel !== null) {
2424
if (typeof value !== 'string') throw new Error(`Channel must be a string, but got: ${String(value)}`)
2525
if (value.length === 0) throw new Error('Channel must be not an empty string')
2626
}

0 commit comments

Comments
 (0)