Skip to content

Commit 5c0e371

Browse files
arthaudfacebook-github-bot
authored andcommitted
Move a inner function in the scope where it is used
Summary: As titled. Reviewed By: dkgi Differential Revision: D28984019 fbshipit-source-id: 4c2277579bf7708da93db6b52361eb73e75ccc59
1 parent baf8916 commit 5c0e371

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/interprocedural_analyses/taint/features.ml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ module ReturnAccessPath = struct
187187
let less_or_equal ~left ~right = Abstract.TreeDomain.Label.is_prefix ~prefix:right left
188188

189189
let widen set =
190-
let truncate = function
191-
| p when List.length p > TaintConfiguration.maximum_return_access_path_depth ->
192-
List.take p TaintConfiguration.maximum_return_access_path_depth
193-
| x -> x
194-
in
195190
if List.length set > TaintConfiguration.maximum_return_access_path_width then
196191
[[]]
197192
else
193+
let truncate = function
194+
| p when List.length p > TaintConfiguration.maximum_return_access_path_depth ->
195+
List.take p TaintConfiguration.maximum_return_access_path_depth
196+
| x -> x
197+
in
198198
List.map ~f:truncate set
199199
end
200200

0 commit comments

Comments
 (0)