Skip to content

Commit

Permalink
Protect pull request number being null
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Sep 23, 2012
1 parent 4d4aaa2 commit 1e9906b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/travis/get_pull_files.js
Expand Up @@ -8,6 +8,10 @@ var spawn = require('child_process').spawn;
var base = path.join(__dirname, '../../');
var mods = {};

if (!ID) {
process.exit(0);
}

https.get({
hostname: 'api.github.com',
path: '/repos/yui/yui3/pulls/' + ID + '/files'
Expand Down

0 comments on commit 1e9906b

Please sign in to comment.