Skip to content

Commit

Permalink
[INTERNAL] Refactor in fav. of ES2019
Browse files Browse the repository at this point in the history
  • Loading branch information
maxreichmann committed Aug 1, 2024
1 parent 331ed52 commit a5cfb8e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions lib/lbt/analyzer/XMLTemplateAnalyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,7 @@ class XMLTemplateAnalyzer {
}
}
}
// eslint-disable-next-line no-unused-vars
} catch (err) {
} catch {
// ignore missing resources
// console.warn( "node not found %s", moduleName);
}
Expand Down
3 changes: 1 addition & 2 deletions lib/lbt/bundle/Builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,7 @@ class BundleBuilder {
let resource = null;
try {
resource = await this.pool.findResourceWithInfo(module);
// eslint-disable-next-line no-unused-vars
} catch (e) {
} catch {
log.error(` couldn't find ${module}`);
}

Expand Down
3 changes: 1 addition & 2 deletions lib/lbt/resources/ResourceCollector.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ class ResourceCollector {
let subModuleInfo;
try {
subModuleInfo = await this._pool.getModuleInfo(subModule);
// eslint-disable-next-line no-unused-vars
} catch (err) {
} catch {
log.verbose(` Missing submodule ${subModule} included by ${moduleInfo.name}`);
}
if (subModuleInfo) {
Expand Down
3 changes: 1 addition & 2 deletions lib/processors/manifestEnhancer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ function isAbsoluteUrl(url) {
const parsedUrl = new URL(url);
// URL with ui5 protocol shouldn't be treated as absolute URL and will be handled separately
return parsedUrl.protocol !== "ui5:";
// eslint-disable-next-line no-unused-vars
} catch (err) {
} catch {
// URL constructor without base requires absolute URL and throws an error for relative URLs
return false;
}
Expand Down

0 comments on commit a5cfb8e

Please sign in to comment.