We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb3990a commit f30227fCopy full SHA for f30227f
lib/fcm.rb
@@ -304,9 +304,7 @@ def credentials_error_msg(param)
304
305
def open_json_key_path?(path)
306
valid_io_object = path.respond_to?(:open)
307
- if valid_io_object && File.file?(path)
308
- return true
309
- end
+ return true if valid_io_object && File.file?(path)
310
311
max_path_len = 1024
312
valid_path = path.is_a?(String) && path.length <= max_path_len
spec/fcm_spec.rb
@@ -25,7 +25,7 @@
25
end
26
27
let(:large_file_name) do
28
- Array.new(1021) {|el| "a"}.join("") + ".txt"
+ Array.new(1021) { "a" }.join("") + ".txt"
29
30
31
let(:creds_error) do
0 commit comments