style: apply linter suggestions

This commit is contained in:
Edouard Vanbelle
2026-04-07 22:50:42 +02:00
parent 1ce29c101d
commit a4266a6e93
33 changed files with 444 additions and 437 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ const recent = {
*/
setupEventListeners() {
document.addEventListener('file-accessed', (event) => {
if (event.detail && event.detail.file) {
if (event.detail?.file) {
const file = event.detail.file;
const itemType = file.item_type || 'file';
this._recordAccess(file.id, itemType);
@@ -144,7 +144,7 @@ const recent = {
if (files.length) window.ui.renderFiles(files);
} catch (error) {
console.error('Error displaying recent files:', error);
if (window.ui && window.ui.showNotification) {
if (window.ui?.showNotification) {
window.ui.showNotification('Error', 'Error loading recent files');
}
}