Skip to content

Commit ad7ad75

Browse files
fix code stylings in js file
1 parent 4787517 commit ad7ad75

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/code/Magento/ConfigurableProduct/view/frontend/web/js/configurable.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ define([
139139
});
140140

141141
$.each(queryParams, $.proxy(function (key, value) {
142-
if (this.options.spConfig.attributes[key] !== undefined
143-
&& this.options.spConfig.attributes[key].options.find(function(element) {
144-
return element.id===value;
142+
if (this.options.spConfig.attributes[key] !== undefined &&
143+
this.options.spConfig.attributes[key].options.find(function (element) {
144+
return element.id === value;
145145
})) {
146146
this.options.values[key] = value;
147147
}
@@ -161,9 +161,9 @@ define([
161161
if (element.value) {
162162
attributeId = element.id.replace(/[a-z]*/, '');
163163

164-
if (this.options.spConfig.attributes[attributeId] !== undefined
165-
&& this.options.spConfig.attributes[attributeId].options.find(function(optionElement) {
166-
return optionElement.id===element.value;
164+
if (this.options.spConfig.attributes[attributeId] !== undefined &&
165+
this.options.spConfig.attributes[attributeId].options.find(function (optionElement) {
166+
return optionElement.id === element.value;
167167
})) {
168168
this.options.values[attributeId] = element.value;
169169
}

0 commit comments

Comments
 (0)