Skip to content

Commit b643c62

Browse files
committed
Appeasing the RuboCop gods: added docs, fixed warnings, made it happy.
1 parent 8e16a50 commit b643c62

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/msf/core/module_manager/reloading.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# -*- coding: binary -*-
22

3-
# Concerns reloading modules
4-
3+
# Msf::ModuleManager::Reloading
4+
#
5+
# Provides methods for reloading Metasploit modules (including payloads,
6+
# stagers, adapters, stages, etc.), clearing out old aliases, and
7+
# refreshing the module cache.
58
module Msf::ModuleManager::Reloading
69
# Reloads the module specified in mod. This can either be an instance of a module or a module class.
710
#
@@ -15,7 +18,7 @@ def reload_module(mod)
1518
metasploit_class = mod
1619
end
1720

18-
if aliased_as = inv_aliases[metasploit_class.fullname]
21+
if (aliased_as = inv_aliases[metasploit_class.fullname])
1922
aliased_as.each do |a|
2023
aliases.delete a
2124
end
@@ -26,7 +29,7 @@ def reload_module(mod)
2629
return reload_payload_module(mod)
2730
end
2831

29-
if aliased_as = inv_aliases[metasploit_class.fullname]
32+
if (aliased_as = inv_aliases[metasploit_class.fullname])
3033
aliased_as.each do |a|
3134
aliases.delete a
3235
end

0 commit comments

Comments
 (0)