@@ -222,13 +222,13 @@ export const use_handlers = (
222222
223223 const new_value = leading_part + trailing_part
224224 const new_raw_cursor_pos = leading_part . length
225- has_modified_current_entry_ref . current = new_value !== ''
225+ has_modified_current_entry_ref . current = new_value != ''
226226 update_value ( new_value , new_raw_cursor_pos )
227227 }
228228
229229 const handle_keyword_deletion_by_click = ( keyword_element : HTMLElement ) => {
230230 const keyword_type = keyword_element . dataset . type
231- if ( keyword_type === 'file-keyword' ) {
231+ if ( keyword_type == 'file-keyword' ) {
232232 const file_path = keyword_element . dataset . path
233233 if ( ! file_path || ! props . context_file_paths ?. includes ( file_path ) ) return
234234
@@ -238,7 +238,7 @@ export const use_handlers = (
238238 if ( start_index !== - 1 ) {
239239 apply_keyword_deletion ( start_index , start_index + search_pattern . length )
240240 }
241- } else if ( keyword_type === 'changes-keyword' ) {
241+ } else if ( keyword_type == 'changes-keyword' ) {
242242 const branch_name = keyword_element . dataset . branchName
243243 if ( ! branch_name ) return
244244
@@ -248,7 +248,7 @@ export const use_handlers = (
248248 if ( start_index !== - 1 ) {
249249 apply_keyword_deletion ( start_index , start_index + search_pattern . length )
250250 }
251- } else if ( keyword_type === 'saved-context-keyword' ) {
251+ } else if ( keyword_type == 'saved-context-keyword' ) {
252252 const context_type = keyword_element . dataset . contextType
253253 const context_name = keyword_element . dataset . contextName
254254 if ( ! context_type || ! context_name ) return
@@ -259,14 +259,14 @@ export const use_handlers = (
259259 if ( start_index !== - 1 ) {
260260 apply_keyword_deletion ( start_index , start_index + search_pattern . length )
261261 }
262- } else if ( keyword_type === 'selection-keyword' ) {
262+ } else if ( keyword_type == 'selection-keyword' ) {
263263 const search_pattern = '#Selection'
264264 const start_index = props . value . indexOf ( search_pattern )
265265
266266 if ( start_index !== - 1 ) {
267267 apply_keyword_deletion ( start_index , start_index + search_pattern . length )
268268 }
269- } else if ( keyword_type === 'commit-keyword' ) {
269+ } else if ( keyword_type == 'commit-keyword' ) {
270270 const repo_name = keyword_element . dataset . repoName
271271 const commit_hash = keyword_element . dataset . commitHash
272272 const commit_message = keyword_element . dataset . commitMessage
@@ -278,7 +278,7 @@ export const use_handlers = (
278278 if ( start_index !== - 1 ) {
279279 apply_keyword_deletion ( start_index , start_index + search_pattern . length )
280280 }
281- } else if ( keyword_type === 'contextatcommit-keyword' ) {
281+ } else if ( keyword_type == 'contextatcommit-keyword' ) {
282282 const repo_name = keyword_element . dataset . repoName
283283 const commit_hash = keyword_element . dataset . commitHash
284284 const commit_message = keyword_element . dataset . commitMessage
@@ -378,7 +378,7 @@ export const use_handlers = (
378378 const caret_position = get_caret_position_from_div ( currentTarget )
379379 const char_before_caret = new_display_value . charAt ( caret_position - 1 )
380380
381- has_modified_current_entry_ref . current = new_raw_value !== ''
381+ has_modified_current_entry_ref . current = new_raw_value != ''
382382 update_value ( new_raw_value )
383383
384384 if ( char_before_caret == '@' ) {
@@ -430,7 +430,7 @@ export const use_handlers = (
430430 let start_of_path = - 1
431431 const end_of_path = raw_pos - 1
432432
433- if ( end_of_path >= 0 && props . value [ end_of_path ] === '`' ) {
433+ if ( end_of_path >= 0 && props . value [ end_of_path ] == '`' ) {
434434 const text_before = props . value . substring ( 0 , end_of_path )
435435 start_of_path = text_before . lastIndexOf ( '`' )
436436 }
@@ -657,13 +657,13 @@ export const use_handlers = (
657657 update_value ( value , value . length )
658658 }
659659
660- if ( e . key === 'ArrowUp' ) {
660+ if ( e . key == 'ArrowUp' ) {
661661 if ( history_index < active_history . length - 1 ) {
662662 const new_index = history_index + 1
663663 set_history_index ( new_index )
664664 update_and_set_caret ( active_history [ new_index ] )
665665 }
666- } else if ( e . key === 'ArrowDown' ) {
666+ } else if ( e . key == 'ArrowDown' ) {
667667 if ( history_index > 0 ) {
668668 const new_index = history_index - 1
669669 set_history_index ( new_index )
@@ -869,7 +869,7 @@ export const use_handlers = (
869869 const new_start_pos = i + 1
870870 const new_value =
871871 value . substring ( 0 , new_start_pos ) + value . substring ( raw_pos )
872- has_modified_current_entry_ref . current = new_value !== ''
872+ has_modified_current_entry_ref . current = new_value != ''
873873 update_value ( new_value , new_start_pos )
874874 return
875875 }
0 commit comments