Skip to content

Commit

Permalink
Minor code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
juster committed May 25, 2011
1 parent 3ef8e76 commit dbe84c3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions aurpc.rb
Expand Up @@ -4,7 +4,7 @@

APPDIR = File.dirname( __FILE__ )

$:.push( APPDIR + '/lib' )
$: << (APPDIR + '/lib')
require 'aurlite'

STATICDIR = APPDIR + '/../static'
Expand Down Expand Up @@ -81,9 +81,8 @@ def author_matches ( anames )
end

matchdata = { :matches => amatches }
matchdata[:next_url] = if amatches.length == RESULTS_LIMIT then
next_url( anames.last )
else nil end
matchdata[:next_url] = if amatches.length != RESULTS_LIMIT then nil
else next_url( anames.last ) end
return matchdata
end

Expand Down

0 comments on commit dbe84c3

Please sign in to comment.