about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorVeetaha <gerzoh1@gmail.com>2020-02-17 22:35:37 +0200
committerVeetaha <gerzoh1@gmail.com>2020-02-22 13:46:11 +0200
commitd905abfb118ca50f6af1292073ce4fc3b91c7045 (patch)
treeb7614a78de75cc2e7d918829e3cea65014cb8578 /editors/code/src
parentf9acb4333f7c07969184d64793a84f8ad8efb309 (diff)
downloadrust-d905abfb118ca50f6af1292073ce4fc3b91c7045.tar.gz
rust-d905abfb118ca50f6af1292073ce4fc3b91c7045.zip
vscode: migrate to tripple equals
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/inlay_hints.ts2
-rw-r--r--editors/code/src/installation/server.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts
index 26705067aec..641ec15c683 100644
--- a/editors/code/src/inlay_hints.ts
+++ b/editors/code/src/inlay_hints.ts
@@ -73,7 +73,7 @@ class HintsUpdater {
     async setEnabled(enabled: boolean): Promise<void> {
         console.log({ enabled, prev: this.enabled });
 
-        if (this.enabled == enabled) return;
+        if (this.enabled === enabled) return;
         this.enabled = enabled;
 
         if (this.enabled) {
diff --git a/editors/code/src/installation/server.ts b/editors/code/src/installation/server.ts
index 63ab104a10a..75085292195 100644
--- a/editors/code/src/installation/server.ts
+++ b/editors/code/src/installation/server.ts
@@ -42,7 +42,7 @@ export async function ensureServerBinary(source: null | BinarySource): Promise<n
 
             console.log("Installed version:", installedVersion, "required:", requiredVersion);
 
-            if (isBinaryAvailable(prebuiltBinaryPath) && installedVersion == requiredVersion) {
+            if (isBinaryAvailable(prebuiltBinaryPath) && installedVersion === requiredVersion) {
                 return prebuiltBinaryPath;
             }