File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments