Permalink
Browse files

fixed warning in /help method

  • Loading branch information...
1 parent 0f18bf1 commit 7d7078af84e751710a458c6954fd2ba159d18a13 @msoap committed Feb 3, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 mojolicious-radio-box.pl
  2. +1 −1 src/routers.pm
@@ -373,7 +373,7 @@ sub _cmus_parse_info {
. " "
. ($_->{pattern}->{pattern} || "/")
}
- sort {$a->{pattern}->{pattern} cmp $b->{pattern}->{pattern}}
+ sort {($a->{pattern}->{pattern} || '') cmp ($b->{pattern}->{pattern} || '')}
@{$routes->{children}};
return $self->render_text($result);
View
@@ -64,7 +64,7 @@ get '/help' => sub {
. " "
. ($_->{pattern}->{pattern} || "/")
}
- sort {$a->{pattern}->{pattern} cmp $b->{pattern}->{pattern}}
+ sort {($a->{pattern}->{pattern} || '') cmp ($b->{pattern}->{pattern} || '')}
@{$routes->{children}};
return $self->render_text($result);

0 comments on commit 7d7078a

Please sign in to comment.