Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit fad513b

Browse files
committed
fix: use ===
1 parent 720d53e commit fad513b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/competition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const CONFLICTING_PACKAGES = [
1919
* @returns {boolean}
2020
*/
2121
function alreadyNotifying(pkg) {
22-
return atom.notifications.getNotifications().some((note) => note.getOptions()._src == `ide-rust-conflict-${pkg}`)
22+
return atom.notifications.getNotifications().some((note) => note.getOptions()._src === `ide-rust-conflict-${pkg}`)
2323
}
2424

2525
/** Scans current active packages and shows notifications to help handle conflicts */

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function exec(command, { cwd } = {}) {
1515
const env = process.env
1616
env.PATH = envPath()
1717
cp.exec(command, { env, cwd }, (err, stdout, stderr) => {
18-
if (err != null) {
18+
if (err !== null) {
1919
reject(err)
2020
return
2121
}
@@ -631,7 +631,7 @@ class RustLanguageClient extends AutoLanguageClient {
631631
function convertMarkdownToSnippets(value) {
632632
// even indices are text, odds are rust snippets
633633
return value.split(/\s*```rust\s*([\s.]+?)\s*```/).map((bit, index) => {
634-
if (index % 2 == 0) {
634+
if (index % 2 === 0) {
635635
return {
636636
type: "markdown",
637637
value: bit,

0 commit comments

Comments
 (0)