Skip to content

Commit afff3ac

Browse files
committed
fix: sonar issues
1 parent ffb3672 commit afff3ac

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src-build/utils.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as fsExtra from "fs-extra";
2-
import fs from 'fs';
3-
import {promises as fsPromises} from 'fs';
2+
import fs, {promises as fsPromises} from 'fs';
43
import * as path from "path";
54
import * as os from "os";
65
import {fileURLToPath} from "url";
@@ -117,7 +116,7 @@ export function patchTauriConfigWithMetricsHTML(tauriConf) {
117116
throw new Error("Unknown Phoenix stage(config.environment) in file " + phoenixConfigPath);
118117
}
119118
const window = tauriConf.tauri.windows[1];
120-
if(!window.label === "healthData"){
119+
if(window.label !== "healthData"){
121120
throw new Error("Expected tauriConf.json- tauri.windows[1].label to be 'healthData'");
122121
}
123122
window.url = metricsURLToUse;

0 commit comments

Comments
 (0)