Skip to content

Commit 9af4ace

Browse files
michaelklishinmergify[bot]
authored andcommitted
Rename a function to follow local module conventions better
(cherry picked from commit d52af56) (cherry picked from commit ef96e2d)
1 parent 255d935 commit 9af4ace

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

deps/rabbit/src/rabbit_definitions.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ filter_orphaned_objects(Maps) ->
131131
any_orphaned_objects(Maps) ->
132132
length(filter_orphaned_objects(Maps)) > 0.
133133

134-
-spec any_orphaned_in_definitions(definitions()) -> boolean().
135-
any_orphaned_in_definitions(DefsMap) ->
134+
-spec any_orphaned_in_doc(definitions()) -> boolean().
135+
any_orphaned_in_doc(DefsMap) ->
136136
any_orphaned_in_category(DefsMap, <<"queues">>)
137137
orelse any_orphaned_in_category(DefsMap, <<"exchanges">>)
138138
orelse any_orphaned_in_category(DefsMap, <<"bindings">>).
@@ -155,7 +155,7 @@ validate_orphaned_objects_in_doc_collection(Defs) when is_list(Defs) ->
155155
validate_orphaned_objects_in_doc(Body) when is_binary(Body) ->
156156
case decode(Body) of
157157
{ok, DefsMap} ->
158-
AnyOrphaned = any_orphaned_in_definitions(DefsMap),
158+
AnyOrphaned = any_orphaned_in_doc(DefsMap),
159159
case AnyOrphaned of
160160
true ->
161161
log_an_error_about_orphaned_objects();
@@ -488,7 +488,7 @@ apply_defs(Map, ActingUser, SuccessFun) when is_function(SuccessFun) ->
488488
%% If any of the queues or exchanges do not have virtual hosts set,
489489
%% this definition file was a virtual-host specific import. They cannot be applied
490490
%% as "complete" definition imports, most notably, imported on boot.
491-
AnyOrphaned = any_orphaned_in_definitions(Map),
491+
AnyOrphaned = any_orphaned_in_doc(Map),
492492

493493
case AnyOrphaned of
494494
true ->

0 commit comments

Comments
 (0)