Eslint formatting updates (#4234)
* Eslint updated (newline-after-var) * Fix newline-after-var * Eslint updated (one-var-declaration-per-line) * Fix one-var-declaration-per-line * Fix additional errors * Lint after merge
This commit is contained in:
@@ -48,11 +48,13 @@ export function asciiToHex (string) {
|
||||
|
||||
export function padRight (input, length) {
|
||||
const value = toHex(input).substr(2, length * 2);
|
||||
|
||||
return '0x' + value + range(length * 2 - value.length).map(() => '0').join('');
|
||||
}
|
||||
|
||||
export function padLeft (input, length) {
|
||||
const value = toHex(input).substr(2, length * 2);
|
||||
|
||||
return '0x' + range(length * 2 - value.length).map(() => '0').join('') + value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user