Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
matz3 committed Aug 28, 2019
1 parent a495f54 commit a563824
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/tasks/bundlers/generateFlexChangesBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,13 @@ module.exports = function({workspace, options}) {
// ensure the existence of the libs section in the dependencies
data["sap.ui5"] = data["sap.ui5"] || {};
data["sap.ui5"].dependencies = data["sap.ui5"].dependencies || {};
data["sap.ui5"].dependencies.libs = data["sap.ui5"].dependencies.libs || {};

const mLibs = data["sap.ui5"].dependencies.libs;
const mLibs = data["sap.ui5"].dependencies.libs = data["sap.ui5"].dependencies.libs || {};

if (mLibs["sap.ui.fl"]) {
log.verbose("sap.ui.fl found in manifest.json");
if (mLibs["sap.ui.fl"]["lazy"]) {
if (mLibs["sap.ui.fl"].lazy) {
log.verbose("sap.ui.fl 'lazy' attribute found in manifest.json, setting it to false...");
if (mLibs["sap.ui.fl"].lazy === true) {
mLibs["sap.ui.fl"].lazy = false;
}
mLibs["sap.ui.fl"].lazy = false;
}
} else {
log.verbose("sap.ui.fl not found in manifest.json, inserting it...");
Expand Down

0 comments on commit a563824

Please sign in to comment.