Skip to content

Commit

Permalink
chore(ts): refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tompsota committed Oct 22, 2024
1 parent 2c7a93e commit 91ca6b9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
6 changes: 1 addition & 5 deletions dist/esm/index.js

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

2 changes: 1 addition & 1 deletion dist/esm/index.js.map

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

4 changes: 2 additions & 2 deletions package-lock.json

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

6 changes: 1 addition & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ const prepareMapping = async (): Promise<void> => {

// parses base64-encoded malware data to SuspiciousAppInfo[]
const parseMalwareData = (data: string[]): SuspiciousAppInfo[] => {
const result: SuspiciousAppInfo[] = [];
data.forEach(entry => {
result.push(toSuspiciousAppInfo(entry));
});
return result;
return data.map(entry => toSuspiciousAppInfo(entry));
};

const toSuspiciousAppInfo = (base64Value: string): SuspiciousAppInfo => {
Expand Down

0 comments on commit 91ca6b9

Please sign in to comment.