We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 291c32e commit 82beea8Copy full SHA for 82beea8
index.js
@@ -26,19 +26,18 @@ function diff() {
26
27
function transform(tree, file, next) {
28
var base = file.dirname;
29
- var range = process.env.TRAVIS_COMMIT_RANGE;
+ var commitRange = process.env.TRAVIS_COMMIT_RANGE;
30
+ var range = (commitRange || '').split(/\.{3}/);
31
- if (!base || !range) {
32
+ if (!base || !commitRange || range.length !== 2) {
33
return next();
34
}
35
- if (range !== previousRange) {
36
+ if (commitRange !== previousRange) {
37
cache = {};
- previousRange = range;
38
+ previousRange = commitRange;
39
40
- range = range.split(/\.{3}/);
41
-
42
if (has(cache, base)) {
43
tick(cache[base]);
44
} else {
0 commit comments