Updated calls-loop detector output to prioritize most significant source mapping first.

pull/226/head
David Pokora 6 years ago
parent 3f208a6ab7
commit 4d32e1c014
No known key found for this signature in database
GPG Key ID: 3CED48D1BB21BDD7
  1. 2
      slither/detectors/statements/calls_in_loop.py

@ -92,8 +92,8 @@ If one of the destinations has a fallback function which reverts, `bad` will alw
info += "\t- {} ({})\n".format(node.expression, node.source_mapping_str)
json = self.generate_json_result(info)
self.add_node_to_json(node, json)
self.add_function_to_json(func, json)
self.add_nodes_to_json([node], json)
results.append(json)
return results

Loading…
Cancel
Save