Skip to content

Commit

Permalink
[watcher] It's the time
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro committed Mar 25, 2012
1 parent f54e8b7 commit e9371e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ var insert_code = function(location,file,code, cb){
var old = fs.readFileSync(target, 'utf8');
var newfile ='';
var oldcode = code.split('');
oldcode[0]==';'?oldcode[0]='';oldcode[0]
oldcode[oldcode.length-1]==';'?oldcode[oldcode.length-1]='';oldcode[oldcode.length-1]
oldcode[0]==';'?oldcode[0]='':oldcode[0];
oldcode[oldcode.length-1]==';'?oldcode[oldcode.length-1]='':oldcode[oldcode.length-1];
oldcode = olcode.join('');
old = old.split('\n').filter(function(line){
return line !== code && line !== oldcode;
Expand Down

0 comments on commit e9371e0

Please sign in to comment.