Skip to content

Commit

Permalink
refactor: avoid any
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Oct 26, 2023
1 parent c60944d commit 3852460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const printSingleRecordTable = (snapshotRecord: OrgSnapshot): void => {
Object.entries(snapshotRecord)
.filter(([key]) => key !== 'attributes')
// remove empty error field
.filter(([key, value]) => key !== 'Error' || value)
.filter(([key, value]) => key !== 'Error' || typeof value === 'string')
// every field on the type is a string
.map(([key, value]: [string, string]) => ({
Name: capitalCase(key),
Expand Down

0 comments on commit 3852460

Please sign in to comment.