diff --git a/src/app/converter/base64encoder.ts b/src/app/converter/base64encoder.ts index 49fa251..c9e3513 100644 --- a/src/app/converter/base64encoder.ts +++ b/src/app/converter/base64encoder.ts @@ -14,7 +14,9 @@ export class Base64Encoder implements Converter { return btoa(input); } catch (exception) { console.error(exception); - throw new Error('Ouch! Looks like you've got a UTF-8 character there. Too bad, this is not supported yet. We're working on it and hope to be ready soon! Why don't you enjoy some kittens meanwhile?'); + throw new Error('Ouch! Looks like you\'ve got a UTF-8 character there. Too bad, this is not supported yet. ' + + 'We\'re working on it and hope to be ready soon! Why don\'t you ' + + 'enjoy some kittens meanwhile?'); } } } diff --git a/src/app/converter/bintodecconverter.ts b/src/app/converter/bintodecconverter.ts index 9eeb46d..3315882 100644 --- a/src/app/converter/bintodecconverter.ts +++ b/src/app/converter/bintodecconverter.ts @@ -10,7 +10,7 @@ export class BinToDecConverter implements Converter { } convert(input: string): string { - let n: number = parseInt(input, 2); + const n: number = parseInt(input, 2); if (isNaN(n)) { throw new Error('The input seems not to be a valid binary number.'); } diff --git a/src/app/converter/dectobinconverter.ts b/src/app/converter/dectobinconverter.ts index 7870238..5102546 100644 --- a/src/app/converter/dectobinconverter.ts +++ b/src/app/converter/dectobinconverter.ts @@ -10,7 +10,7 @@ export class DecToBinConverter implements Converter { } convert(input: string): string { - let n: number = parseInt(input, 10); + const n: number = parseInt(input, 10); if (isNaN(n)) { throw new Error('The input seems not to be a valid integer.'); } diff --git a/src/app/converter/dectohexconverter.ts b/src/app/converter/dectohexconverter.ts index ab29df2..3097864 100644 --- a/src/app/converter/dectohexconverter.ts +++ b/src/app/converter/dectohexconverter.ts @@ -10,7 +10,7 @@ export class DecToHexConverter implements Converter { } convert(input: string): string { - let n: number = parseInt(input, 10); + const n: number = parseInt(input, 10); if (isNaN(n)) { throw new Error('The input seems not to be a valid integer.'); } diff --git a/src/app/converter/hextodecconverter.ts b/src/app/converter/hextodecconverter.ts index 406bd04..4b78345 100644 --- a/src/app/converter/hextodecconverter.ts +++ b/src/app/converter/hextodecconverter.ts @@ -10,9 +10,9 @@ export class HexToDecConverter implements Converter { } convert(input: string): string { - let n: number = parseInt(input, 16); + const n: number = parseInt(input, 16); if (isNaN(n)) { - throw new Error('The input seems not to be a valid hexadecimal number.') + throw new Error('The input seems not to be a valid hexadecimal number.'); } return n.toString(10); }