Skip to content

Commit 1686b82

Browse files
committed
Adhere to style guide by using unless
1 parent 8b4c7b8 commit 1686b82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/modules/metadata/cache.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_unchanged_module_references
8787

8888
@module_metadata_cache.each_value do |module_metadata|
8989

90-
if !module_metadata.path || !::File.exist?(module_metadata.path)
90+
unless module_metadata.path && ::File.exist?(module_metadata.path)
9191
next
9292
end
9393

0 commit comments

Comments
 (0)