sonarqube fixes
Sonarqube Scanner / Build and analyze (push) Failing after 1m10s

This commit is contained in:
Florian Zumpe
2026-09-27 22:18:37 +02:00
parent 714b231361
commit b37712a2e3
3 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -506,7 +506,7 @@ globalThis.Wegwichtel = globalThis.Wegwichtel || {};
function releasePendingPreview(pending) {
const url = pending?.previewUrl;
if (!url || !url.startsWith('blob:') || typeof globalThis.URL?.revokeObjectURL !== 'function') return;
if (!url?.startsWith('blob:') || typeof globalThis.URL?.revokeObjectURL !== 'function') return;
globalThis.URL.revokeObjectURL(url);
}
@@ -663,8 +663,7 @@ globalThis.Wegwichtel = globalThis.Wegwichtel || {};
try {
handles = await globalThis.showOpenFilePicker(pickerOptions(kind));
} catch (error) {
if (error?.name === 'AbortError') return true;
return false;
return error?.name === 'AbortError';
}
if (kind === 'audio') {