Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
iliapolo committed Mar 4, 2020
1 parent cb885ff commit 8fc6cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/prlint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ async function commitMessage(number) {
const expectedCommitTitle = `${issue.title} (#${number})`

if (title !== expectedCommitTitle) {
throw new LinterError("First line of '## Commit Message' section"
throw new LinterError("First paragraph of '## Commit Message' section"
+ ` must be: '${expectedCommitTitle}'`)
}

for (i = 0; i < paragraphs.length; i++) {
for (i in paragraphs) {
if (i != paragraphs.length - 1 && paragraphs[i].startsWith("BREAKING CHANGE:")) {
throw new LinterError("'BREAKING CHANGE:' must be specified as the last paragraph");
}
Expand Down

0 comments on commit 8fc6cf0

Please sign in to comment.