File tree Expand file tree Collapse file tree
src/Paramore.Brighter/Extensions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,17 +51,10 @@ internal static IEnumerable<UnwrapWithAttribute> GetOtherUnwrapsInPipeline(this
5151 }
5252
5353 internal static bool HasNoInboxAttributesInPipeline ( this MethodInfo targetMethod )
54- {
55- var customAttributes = targetMethod . GetCustomAttributes ( true ) ;
56- return customAttributes
57- . Any ( a => a is NoGlobalInboxAttribute ) ;
58- }
54+ => targetMethod . IsDefined ( typeof ( NoGlobalInboxAttribute ) , true ) ;
5955
6056 internal static bool HasExistingUseInboxAttributesInPipeline ( this MethodInfo targetMethod )
61- {
62- var customAttributes = targetMethod . GetCustomAttributes ( true ) ;
63- return customAttributes
64- . Any ( a => a is UseInboxAttribute or UseInboxAsyncAttribute ) ;
65- }
57+ => targetMethod . IsDefined ( typeof ( UseInboxAttribute ) , true )
58+ || targetMethod . IsDefined ( typeof ( UseInboxAsyncAttribute ) , true ) ;
6659 }
6760}
You can’t perform that action at this time.
0 commit comments