Skip to content

Commit e79538b

Browse files
committed
Use implicit return
1 parent a50daf4 commit e79538b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utilities.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ function printmethod(buffer::IOBuffer, binding::Docs.Binding, func, method::Meth
282282
function f(t)
283283
# t is always either a UnionAll which represents a generic type or a Tuple where each parameter is the argument
284284
if t isa DataType && t <: Tuple
285-
return t
285+
t
286286
elseif t isa UnionAll
287-
return f(t.body)
287+
f(t.body)
288288
else
289289
error("Expected `typeof($t)` to be `Tuple` or `UnionAll` but found `$typeof(t)`")
290290
end
@@ -305,7 +305,7 @@ function printmethod(buffer::IOBuffer, binding::Docs.Binding, func, method::Meth
305305
end
306306

307307
function get_typesig(typ, org)
308-
return typ
308+
typ
309309
end
310310

311311
for (i, sym) in enumerate(args)
@@ -346,7 +346,7 @@ function printmethod(buffer::IOBuffer, binding::Docs.Binding, func, method::Meth
346346
if length(rt) >= 1 && rt[1] !== Nothing && rt[1] !== Union{}
347347
print(buffer, " -> $(rt[1])")
348348
end
349-
return buffer
349+
buffer
350350
end
351351

352352
printmethod(b, f, m) = String(take!(printmethod(IOBuffer(), b, f, m)))

0 commit comments

Comments
 (0)