Skip to content

Commit

Permalink
Fixed nil ref error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Persinger authored and Mike Rumble committed Apr 19, 2010
1 parent a57b10b commit 52f8b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gattica.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def build_query_string(args,profile)
sort[0..0] == '-' ? "-ga:#{sort[1..-1]}" : "ga:#{sort}" # if the first character is a dash, move it before the ga:
end.join(',')
end
unless args[:segment].empty?
unless args[:segment].nil?
output += "&segment=#{args[:segment]}"
end

Expand Down

0 comments on commit 52f8b34

Please sign in to comment.