Skip to content

Commit

Permalink
fix: Resolve lint warnings.
Browse files Browse the repository at this point in the history
Closes #13
  • Loading branch information
joberstein committed Mar 6, 2023
1 parent 4d77c1b commit 69fbe96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commitlint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export default async (args: GetCommitMessageOptions) => {
const warnings = [];
const errors = [];

results.forEach(result => {
warnings.push(...(result.warnings || []));
errors.push(...(result.errors || []));
results.forEach(({ warnings, errors }) => {
warnings.push(...warnings);
errors.push(...errors);
});

if (!!warnings.length) {
Expand Down

0 comments on commit 69fbe96

Please sign in to comment.