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:
Mike Moore 2015-03-25 17:10:00 -06:00
parent 1dd5c2820a
commit 4d81ad116a
2 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,7 @@ module Google
# @params [Object] Storage object
def initialize(store)
@store= store
@authorization = nil
end
##

View File

@ -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