Просмотр исходного кода

style: remove another ? operator due to EsLint complaining about it

rugk 1 неделя назад
Родитель
Сommit
974f7983e3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      js/test/PasteStatus.js

+ 1 - 1
js/test/PasteStatus.js

@@ -92,7 +92,7 @@ describe('PasteStatus', function () {
                 PrivateBin.PasteStatus.init();
                 PrivateBin.PasteStatus.createPasteNotification('https://example.com/', 'https://example.com/delete');
 
-                const hotkey = document.querySelector('#copyhint kbd')?.textContent;
+                const hotkey = document.querySelector('#copyhint kbd').textContent;
 
                 assert.strictEqual(hotkey, 'Ctrl');
             }