Skip to content

Commit 390771f

Browse files
authored
eliminate some code duplication (#17)
1 parent cf3894f commit 390771f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/EnforcedTypeSignatureCallables.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,8 @@ end
102102
function typed_callable_no_special_casing(callable::Callable, ::Type{Return}, ::Type{Arguments}) where {
103103
Return, Arguments <: Tuple, Callable,
104104
}
105-
ret = return_type_enforcer(Return)
106105
with_argument_types = CallableWithArgumentTypes{Arguments}(callable)
107-
ret with_argument_types
106+
typed_callable_no_special_casing(with_argument_types, Return)
108107
end
109108

110109
"""

0 commit comments

Comments
 (0)