Skip to content
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

Commit c2a9fee

Browse files
committed
Directly return result of map call
Remove `customized` variable
1 parent c0a2d23 commit c2a9fee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/generate-layouts.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,13 @@ var loadConfigs = function (layoutsFile) {
129129

130130
var applyCustomizations = function (customizations) {
131131
return function (panelsConfig) {
132-
var customized = panelsConfig.map(function (view) {
132+
return panelsConfig.map(function (view) {
133133
var customization = customizations[view.type];
134134
if (!customization) {
135135
return view;
136136
}
137137
return _.merge(view, { view: customization });
138138
});
139-
return customized;
140139
};
141140
};
142141

0 commit comments

Comments
 (0)