Explorar o código

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

rugk hai 1 semana
pai
achega
974f7983e3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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');
             }