mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
Work around an off problem with the require() call not always returning true. If the require fails, an exception should be raised, so this should be a safe workaround.
git-svn-id: file:///home/svn/framework3/trunk@4454 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
fe540a3001
commit
7007ec3349
@ -412,7 +412,7 @@ protected
|
||||
clirb = File.join(Rex::Root, path)
|
||||
old = CommDispatcher.constants
|
||||
|
||||
if (require(clirb) == true)
|
||||
if (require(clirb))
|
||||
new = CommDispatcher.constants
|
||||
diff = new - old
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user