Skip to content

Commit

Permalink
[watcher] Fix ')'
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro committed Mar 25, 2012
1 parent 097d47d commit ae8b708
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,7 @@ var insert_code = function(location,file,code, cb){
var newfile ='';
old = old.split('\n').filter(function(line){
return line !== code;
}).join('\n')
)
}).join('\n');
var lines = old.split('\n');
if (/\#!\//gi.test(lines[0])){
var shebang = lines[0]
Expand Down

0 comments on commit ae8b708

Please sign in to comment.