Fix warning: instance variable not initialized
Initialize the variables to avoid the warning. Addresses the following warnings: lib/google/api_client/auth/storage.rb:51: warning: instance variable @authorization not initialized lib/google/api_client/batch.rb:128: warning: instance variable @global_callback not initialized
This commit is contained in:
parent
1dd5c2820a
commit
4d81ad116a
|
@ -38,6 +38,7 @@ module Google
|
|||
# @params [Object] Storage object
|
||||
def initialize(store)
|
||||
@store= store
|
||||
@authorization = nil
|
||||
end
|
||||
|
||||
##
|
||||
|
|
|
@ -87,6 +87,7 @@ module Google
|
|||
# block to be called when result ready
|
||||
def initialize(options = {}, &block)
|
||||
@calls = []
|
||||
@global_callback = nil
|
||||
@global_callback = block if block_given?
|
||||
@last_auto_id = 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue