Explorar el Código

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

rugk hace 2 semanas
padre
commit
974f7983e3
Se han modificado 1 ficheros con 1 adiciones y 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');
             }