Skip to content

Commit 38c1c0a

Browse files
author
Aaron Huggins
committed
Clean up indentation and typing
1 parent 06625cc commit 38c1c0a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/X12TransactionMap.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ export class X12TransactionMap {
8787
Object.keys(map).forEach(key => {
8888
if (Object.prototype.hasOwnProperty.call(map, key) as boolean) {
8989
if (Array.isArray(map[key]) && typeof map[key][0] === 'string') {
90+
const typedArray: string[] = map[key] as string[]
9091
const newArray = new Array<string | string[]>()
9192

92-
;(map[key] as string[]).forEach(query => {
93+
typedArray.forEach(query => {
9394
try {
9495
const result = engine.querySingle(interchange, query, '')
9596

src/X12ValidationEngine/X12ValidationErrorCode.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ export const X12ValidationErrorCode: Record<string, (...args: any[]) => Validati
3838
break
3939
case '11':
4040
description = 'Too many repetitions'
41-
break
41+
break
4242
case '12':
4343
description = 'Too many components'
44-
break
44+
break
4545
case '7':
4646
default:
4747
description = 'Invalid code value'
@@ -124,7 +124,8 @@ export const X12ValidationErrorCode: Record<string, (...args: any[]) => Validati
124124
break
125125
case '7':
126126
default:
127-
description = 'Missing or invalid transaction set control number (a duplicate transaction number may have occurred)'
127+
description =
128+
'Missing or invalid transaction set control number (a duplicate transaction number may have occurred)'
128129
code = '7'
129130
break
130131
}

0 commit comments

Comments
 (0)