Explorar el Código

style: do not use ? yet as we have no support for it/ESLint cmplains

rugk hace 1 semana
padre
commit
526e795b03
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      js/test/PasteStatus.js

+ 1 - 1
js/test/PasteStatus.js

@@ -72,7 +72,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, 'Cmd');
             }