Skip to content

Commit

Permalink
remove strip on default value check
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee337 committed May 13, 2013
1 parent 2fe59a0 commit 65c316b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/slither/column.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def initialize(name, length, options = {})
@truncate = options[:truncate] || false
# Only used with floats, this determines the decimal places
@precision = options[:precision]

end

def unpacker
Expand Down Expand Up @@ -65,7 +66,7 @@ def sizer
end

def apply_default(value)
value.to_s.strip.empty? ? @default_value : value
value.to_s.empty? ? @default_value : value
end

# Manually apply padding. sprintf only allows padding on numeric fields.
Expand Down

0 comments on commit 65c316b

Please sign in to comment.