Skip to content

Commit

Permalink
fix: linting warning
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 committed Jun 8, 2021
1 parent b953dcb commit 363a17c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"npm-run-all": "^4.1.5",
"only-allow": "^1.0.0",
"patch-package": "./patches/patch-package-6.4.7.tgz",
"prettier": "^2.3.0",
"prettier": "^2.3.1",
"ts-node": "^10.0.0",
"ttypescript": "^1.5.12",
"typescript": "4.3.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ export function PostRecordToJSONFormat(post: PostRecord): BackupJSONFileLatest['
identifier: post.identifier.toText(),
postBy: post.postBy.toText(),
recipientGroups: post.recipientGroups.map((x) => x.toText()),
recipients: Array.from(post.recipients).map(([identifier, detail]): [
string,
{ reason: RecipientReasonJSON[] },
] => [
identifier.toText(),
{
reason: Array.from(detail.reason).map<RecipientReasonJSON>(RecipientReasonToJSON),
},
]),
recipients: Array.from(post.recipients).map(
([identifier, detail]): [string, { reason: RecipientReasonJSON[] }] => [
identifier.toText(),
{
reason: Array.from(detail.reason).map<RecipientReasonJSON>(RecipientReasonToJSON),
},
],
),
}
}

Expand Down
17 changes: 12 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 363a17c

Please sign in to comment.