Skip to content

Commit

Permalink
Trim lines from .hubot_history
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles committed Mar 13, 2015
1 parent fbf01cd commit 93fa5b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/adapters/shell.coffee
Expand Up @@ -89,6 +89,7 @@ class Shell extends Adapter
items = []
rl = readline.createInterface(input: instream, output: outstream, terminal: false)
rl.on 'line', (line) ->
line = line.trim()
if line.length > 0
items.push(line)
rl.on 'close', () ->
Expand Down

0 comments on commit 93fa5b2

Please sign in to comment.