Skip to content

Commit

Permalink
fixed "result" local variable not found
Browse files Browse the repository at this point in the history
  • Loading branch information
alanho committed Nov 13, 2009
1 parent fb8ce67 commit a9509e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bitly/url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Url

def initialize(login,api_key,obj=nil)
unless obj.nil?
raise BitlyError.new(result['errorMessage'],result['errorCode']) if obj['statusCode'] == "ERROR"
raise BitlyError.new(obj['errorMessage'],obj['errorCode']) if obj['statusCode'] == "ERROR"
instance_variablise(obj, VARIABLES)
@info = obj[:info] if obj[:info]
@stats = obj[:stats] if obj[:stats]
Expand Down

0 comments on commit a9509e8

Please sign in to comment.