Skip to content

Commit 889de05

Browse files
committed
removing some commented code
1 parent 486f8cd commit 889de05

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/msf/core/db_manager/module_cache.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,6 @@ def search_modules(search_string)
243243
@types << formatted_values
244244
end
245245
end
246-
247-
# unioned_conditions = union_conditions.inject { |union, condition|
248-
# union.or(condition)
249-
# }
250-
#
251-
# @query = @query.where(unioned_conditions).to_a.uniq { |m| m.fullname }
252246
end
253247

254248
@query = @query.module_arch( @archs.to_a.flatten ) if @archs.any?
@@ -259,7 +253,7 @@ def search_modules(search_string)
259253
@query = @query.module_type( @types.to_a.flatten ) if @types.any?
260254
@query = @query.module_stance( @stances.to_a.flatten ) if @stances.any?
261255
@query = @query.module_ref( @refs.to_a.flatten ) if @refs.any?
262-
256+
263257
@query.uniq
264258
end
265259

0 commit comments

Comments
 (0)