Commit b846f7fd authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Don't use tap with safe navigator

parent cfc8d286
......@@ -38,9 +38,10 @@ module API
end
def with_adaptive_finder
Security::FindingsFinder.new(pipeline, params: declared_params).execute.tap do |result|
paginate(result) if result
end&.findings
result = Security::FindingsFinder.new(pipeline, params: declared_params).execute
return unless result
paginate(result).findings
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment