Reformat files with new linter
All changes should be whitespace, and were done using npm run-script
lint.
Change-Id: I943c6b435c5c872841af5affc1e89910468b5ca6
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/src/store/modules/Operations/BootSettingsStore.js b/src/store/modules/Operations/BootSettingsStore.js
index 7a36dd8..1f5a628 100644
--- a/src/store/modules/Operations/BootSettingsStore.js
+++ b/src/store/modules/Operations/BootSettingsStore.js
@@ -36,7 +36,7 @@
.then(({ data: { Boot } }) => {
commit(
'setBootSourceOptions',
- Boot['BootSourceOverrideTarget@Redfish.AllowableValues']
+ Boot['BootSourceOverrideTarget@Redfish.AllowableValues'],
);
commit('setOverrideEnabled', Boot.BootSourceOverrideEnabled);
commit('setBootSource', Boot.BootSourceOverrideTarget);
@@ -74,8 +74,12 @@
// TODO: switch to Redfish when available
return await api
.get('/xyz/openbmc_project/control/host0/TPMEnable')
- .then(({ data: { data: { TPMEnable } } }) =>
- commit('setTpmPolicy', TPMEnable)
+ .then(
+ ({
+ data: {
+ data: { TPMEnable },
+ },
+ }) => commit('setTpmPolicy', TPMEnable),
)
.catch((error) => console.log(error));
},
@@ -85,7 +89,7 @@
return api
.put(
'/xyz/openbmc_project/control/host0/TPMEnable/attr/TPMEnable',
- data
+ data,
)
.then((response) => {
// If request success, commit the values
@@ -101,13 +105,13 @@
},
async saveSettings(
{ dispatch },
- { bootSource, overrideEnabled, tpmEnabled }
+ { bootSource, overrideEnabled, tpmEnabled },
) {
const promises = [];
if (bootSource !== null || overrideEnabled !== null) {
promises.push(
- dispatch('saveBootSettings', { bootSource, overrideEnabled })
+ dispatch('saveBootSettings', { bootSource, overrideEnabled }),
);
}
if (tpmEnabled !== null) {
@@ -117,17 +121,17 @@
return await api.all(promises).then(
api.spread((...responses) => {
let message = i18n.t(
- 'pageServerPowerOperations.toast.successSaveSettings'
+ 'pageServerPowerOperations.toast.successSaveSettings',
);
responses.forEach((response) => {
if (response instanceof Error) {
throw new Error(
- i18n.t('pageServerPowerOperations.toast.errorSaveSettings')
+ i18n.t('pageServerPowerOperations.toast.errorSaveSettings'),
);
}
});
return message;
- })
+ }),
);
},
},