Simplify get-slave-i2c-errors.js by using padEnd()

This commit is contained in:
László Monda
2018-01-15 00:55:38 +01:00
parent 95caa58624
commit c723fe2651

View File

@@ -28,7 +28,7 @@ const slaveIdToName = [
'kboot', 'kboot',
]; ];
let str = `${slaveIdToName[slaveId]}: `; let str = `${slaveIdToName[slaveId].padEnd(14)}: `;
const statusCodesToStrings = { const statusCodesToStrings = {
0: 'nak', 0: 'nak',