Skip to content

Commit ebe4662

Browse files
committed
Fix linting
1 parent a04c5e8 commit ebe4662

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CodeSnippetService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class CodeSnippetService {
150150
}
151151

152152
for (const snippet of this.codeSnippetList) {
153-
if (snippet.name == oldName) {
153+
if (snippet.name === oldName) {
154154
snippet.name = newName;
155155
break;
156156
}
@@ -165,7 +165,7 @@ export class CodeSnippetService {
165165

166166
duplicateNameExists(newName: string): void {
167167
for (const snippet of this.codeSnippetList) {
168-
if (snippet.name == newName) {
168+
if (snippet.name === newName) {
169169
throw Error('Duplicate Name of Code Snippet');
170170
}
171171
}
@@ -177,7 +177,7 @@ export class CodeSnippetService {
177177
): Promise<boolean> {
178178
console.log(this.codeSnippetList);
179179
for (let snippet of this.codeSnippetList) {
180-
if (snippet.name == oldName) {
180+
if (snippet.name === oldName) {
181181
this.codeSnippetList.splice(snippet.id, 1, newSnippet);
182182
break;
183183
}
@@ -200,7 +200,7 @@ export class CodeSnippetService {
200200
toIdx = toIdx - 1;
201201
}
202202

203-
if (toIdx == fromIdx) {
203+
if (toIdx === fromIdx) {
204204
return;
205205
}
206206

0 commit comments

Comments
 (0)