We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c5be44 commit 591c2d5Copy full SHA for 591c2d5
1 file changed
src/main/ts/ingrid.ts
@@ -15,10 +15,8 @@ type TLineDigest = {
15
16
// eslint-disable-next-line sonarjs/cognitive-complexity
17
export const parseLine = (line: string, sep = ' '): TLineDigest => {
18
- if (typeof line !== 'string') {
19
- console.error('wtf?', line)
20
- throw new Error('parseLine: line must be a string')
21
- }
+ if (typeof line !== 'string') throw new Error('parseLine: line must be a string')
+
22
const result: TLineDigest = {
23
spaces: [],
24
words: []
0 commit comments