Skip to content

Commit a673c36

Browse files
committed
Use a more descriptive variable name
Also removes commented-out code.
1 parent bc7cd4b commit a673c36

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/msf/core/module_manager.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module Msf
1818
# of loading and instantiation.
1919
#
2020
# @todo add unload support
21-
class ModuleManager #< ModuleSet
21+
class ModuleManager
2222
include Msf::Framework::Offspring
2323

2424
require 'msf/core/payload_set'
@@ -75,24 +75,24 @@ def create(name)
7575
type = TYPE_BY_DIRECTORY[potential_type_or_directory]
7676
end
7777

78-
m = nil
78+
module_instance = nil
7979
if type
8080
module_set = module_set_by_type[type]
8181

8282
# First element in names is the type, so skip it
8383
module_reference_name = names[1 .. -1].join("/")
84-
m = module_set.create(module_reference_name)
84+
module_instance = module_set.create(module_reference_name)
8585
else
8686
# Then we don't have a type, so we have to step through each set
8787
# to see if we can create this module.
8888
module_set_by_type.each do |_, set|
8989
module_reference_name = names.join("/")
90-
m = set.create(module_reference_name)
91-
break if m
90+
module_instance = set.create(module_reference_name)
91+
break if module_instance
9292
end
9393
end
9494

95-
m
95+
module_instance
9696
end
9797

9898

0 commit comments

Comments
 (0)