Skip to content

Commit

Permalink
Change == to === operator in compact.ts file (#15620)
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax authored Aug 26, 2023
1 parent 5d0ef94 commit d28613f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/compact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import EmccWASI from "./tvmjs_runtime_wasi";
* Get performance measurement.
*/
export function getPerformance(): Performance {
if (typeof performance == "undefined") {
if (typeof performance === "undefined") {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const performanceNode = require("perf_hooks");
return performanceNode.performance as Performance;
Expand All @@ -38,7 +38,7 @@ export function getPerformance(): Performance {
* @param url The url.
*/
export function createWebSocket(url: string): WebSocket {
if (typeof WebSocket == "undefined") {
if (typeof WebSocket === "undefined") {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const WebSocket = require("ws");
return new WebSocket(url);
Expand Down

0 comments on commit d28613f

Please sign in to comment.