We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 637e68b commit c46019eCopy full SHA for c46019e
lib/date_of_birth.rb
@@ -7,7 +7,7 @@ def initialize(date_string)
7
end
8
9
def to_s
10
- return if match.nil?
+ return '' if match.nil?
11
'%d-%02d-%02d' % [match[:year], month(match[:month]), match[:day]]
12
13
0 commit comments