Fixup linter issues in filemanager.js

This commit is contained in:
Johannes Zellner
2021-01-12 14:29:04 +01:00
parent 6ede67512d
commit 383147b26a

View File

@@ -1,6 +1,4 @@
'use strict';
/* global angular, $, async, monaco, Mimer */
"use strict";
require.config({ paths: { 'vs': '3rdparty/vs' }});
@@ -86,13 +84,13 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl
];
function isArchive(f) {
return f.match(/\.tgz$/)
|| f.match(/\.tar$/)
|| f.match(/\.7z$/)
|| f.match(/\.zip$/)
|| f.match(/\.tar\.gz$/)
|| f.match(/\.tar\.xz$/)
|| f.match(/\.tar\.bz2$/);
return f.match(/\.tgz$/) ||
f.match(/\.tar$/) ||
f.match(/\.7z$/) ||
f.match(/\.zip$/) ||
f.match(/\.tar\.gz$/) ||
f.match(/\.tar\.xz$/) ||
f.match(/\.tar\.bz2$/);
}
$scope.menuOptions = [];