Permalink
Browse files

remove unused code

  • Loading branch information...
1 parent 7f3058e commit e79ff7be2e208ece14c4984997d4ebf16f33d5e7 @jeremyw committed Dec 12, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −1 lib/stamp/emitters/numeric_emitter.rb
  2. +1 −3 lib/stamp/emitters/string.rb
@@ -9,7 +9,7 @@ def initialize(field)
end
def format(target)
- target.send(field).to_s
+ target.send(field)
end
end
end
@@ -3,10 +3,8 @@ module Emitters
class String
attr_reader :value
- EMPTY_STRING = ''
-
def initialize(value)
- @value = value || EMPTY_STRING
+ @value = value
end
@kbrock

kbrock Dec 12, 2012

Contributor

I thought I was getting some nils going through.

I'm glad you were able to remove this check. That must mean the bug was refactored out as the code kept getting rebased.

def format(target)

0 comments on commit e79ff7b

Please sign in to comment.