Skip to content

Commit 55f815a

Browse files
committed
Refactor code-style
1 parent 06d6af2 commit 55f815a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ function diff() {
3636
}
3737

3838
function ongit(err, git) {
39-
/* istanbul ignore if - never happens */
39+
/* istanbul ignore if - Never happens */
4040
if (err) {
4141
return next(err)
4242
}
4343

44-
/* istanbul ignore if - not testable in a Git repo... */
44+
/* istanbul ignore if - Not testable in a Git repo */
4545
if (!git) {
4646
return next(new Error('Not in a git repository'))
4747
}
@@ -83,7 +83,7 @@ function diff() {
8383
var fp = path.resolve(file.cwd, file.path)
8484
var ranges = patches[fp]
8585

86-
/* Unchanged file. */
86+
// Unchanged file.
8787
if (!ranges || ranges.length === 0) {
8888
file.messages = []
8989
return next()
@@ -120,8 +120,7 @@ function parse(data) {
120120
var position
121121
var no
122122

123-
/* istanbul ignore if - should not happen, maybe if
124-
* Git returns weird diffs? */
123+
/* istanbul ignore if - Should not happen, maybe if Git returns weird diffs? */
125124
if (!match) {
126125
return
127126
}

0 commit comments

Comments
 (0)