code cleanup

This commit is contained in:
Sebastian Hildebrandt
2019-03-03 11:53:33 +01:00
parent 9fe40ad5ea
commit 667c7e8b90
2 changed files with 22 additions and 2 deletions
+2 -2
View File
@@ -669,7 +669,7 @@ function diskLayout(callback) {
let interfaceType = device.tran ? device.tran.toUpperCase().trim() : '';
if (interfaceType === 'NVME') {
mediumType = '2';
interfaceType = 'PCIe'
interfaceType = 'PCIe';
}
result.push({
device: BSDName,
@@ -691,7 +691,7 @@ function diskLayout(callback) {
BSDName: BSDName
});
cmd = cmd + 'printf "\n' + BSDName + '|"; smartctl -H ' + BSDName + ' | grep overall;';
})
});
}
} catch (e) {
util.noop();