Jakub Wilk committed b3e1f3c

s/return undef/return/g.

Comments (0)

Files changed (1)

   local ($_) = @_;
   my $number_re = qr{(-?)(\d+),(\d{2})};
-  m{^$number_re$} or m{>$number_re<} or return undef;
+  m{^$number_re$} or m{>$number_re<} or return;
   my $amount = int($2) + int($3) / 100.0;
   $amount = -$amount if $1;
   return $amount;
 sub correct_date($)
   local ($_) = @_;
-  return undef unless defined $_;
+  return unless defined $_;
   my $time;
   return $_ if $_ eq 'now';
   if (m/(\d{4})-(\d{2})-(\d{2})/)
       $1 >= 1900;
   debug "Invalid date: $_";
-  return undef;
+  return;
 sub ground_date($$)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.