Skip to content

Commit c496d2c

Browse files
author
Jonathan Claudius
committed
Remove nil check
1 parent c29b748 commit c496d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/multi/gather/rubygems_api_key.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def run
3030
paths = enum_user_directories.map {|d| d + "/.gem/credentials"}
3131
paths = paths.select { |f| file?(f) }
3232

33-
if paths.nil? or paths.empty?
33+
if paths.empty?
3434
print_error("No users found with a ~/.gem/credentials file")
3535
return
3636
end

0 commit comments

Comments
 (0)