Skip to content

Commit fee7cfa

Browse files
committed
Refactor code-style
1 parent 45a5562 commit fee7cfa

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ function warn(landmarks, reference) {
611611
}
612612
}
613613

614-
const suggestion = propose(hash ? hash : filePath, dictionary, {
614+
const suggestion = propose(hash || filePath, dictionary, {
615615
threshold: 0.7
616616
})
617617

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115
],
116116
"prettier": true,
117117
"rules": {
118-
"unicorn/prefer-logical-operator-over-ternary": "off",
119118
"unicorn/prefer-string-replace-all": "off"
120119
}
121120
}

0 commit comments

Comments
 (0)