This is an automated email from the ASF dual-hosted git repository. rubys pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push: new 398423c more idiomatic 'not found' 398423c is described below commit 398423caa180d00ed4685a42c2276efe13780fe8 Author: Sam Ruby <ru...@intertwingly.net> AuthorDate: Tue Oct 24 22:44:48 2017 -0400 more idiomatic 'not found' also agenda will be nil, not '', if no agenda is found --- www/board/agenda/routes.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/www/board/agenda/routes.rb b/www/board/agenda/routes.rb index a362dab..736e98c 100755 --- a/www/board/agenda/routes.rb +++ b/www/board/agenda/routes.rb @@ -20,11 +20,8 @@ end # redirect root to latest agenda get '/' do agenda = dir('board_agenda_*.txt').sort.last - if agenda == '' - _html :not_found - else - redirect "#{request.path}#{agenda[/\d+_\d+_\d+/].gsub('_', '-')}/" - end + pass unless agenda + redirect "#{request.path}#{agenda[/\d+_\d+_\d+/].gsub('_', '-')}/" end # redirect shepherd to latest agenda -- To stop receiving notification emails like this one, please contact ['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].