lib/crowdin-api/api_resources/storages.rb in crowdin-api-1.7.0 vs lib/crowdin-api/api_resources/storages.rb in crowdin-api-1.8.0

- old
+ new

@@ -20,10 +20,10 @@ # * {https://developer.crowdin.com/api/v2/#operation/api.storages.post API Documentation} # * {https://developer.crowdin.com/enterprise/api/v2/#operation/api.storages.post Enterprise API Documentation} def add_storage(file = nil) file || raise_parameter_is_required_error(:file) - file ||= File.open(file, 'r') + file = File.open(file, 'r') headers = { 'Content-Type' => 'application/octet-stream', 'Crowdin-API-FileName' => File.basename(file) } request = Web::Request.new( connection, :post,