Skip to content

Commit

Permalink
fixed jshint
Browse files Browse the repository at this point in the history
  • Loading branch information
n1k0 committed Jun 2, 2013
1 parent ff50af6 commit e664bdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
/*jshint maxstatements:30, maxcomplexity:10*/

// node check
if (process && process.title === "node") {
if ('process' in this && process.title === "node") {
console.error('CasperJS cannot be executed within a nodejs environment');
process.exit(1);
}

// phantom check
if (!phantom) {
if (!('phantom' in this)) {
console.error('CasperJS needs to be executed in a PhantomJS environment http://phantomjs.org/');
}

Expand Down

0 comments on commit e664bdd

Please sign in to comment.