Skip to content

Commit 6b405a3

Browse files
committed
Format feedback
1 parent 9225caa commit 6b405a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/KernelAbstractions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,12 +543,12 @@ allocates an array using unified memory if the backend supports it. Use
543543
"""
544544
allocate(backend::Backend, T::Type, dims...; kwargs...) = allocate(backend, T, dims; kwargs...)
545545
function allocate(backend::Backend, T::Type, dims::Tuple; unified::Union{Nothing, Bool} = nothing)
546-
return if isnothing(unified)
546+
if isnothing(unified)
547547
throw(MethodError(allocate, (backend, T, dims)))
548548
elseif unified
549549
throw(ArgumentError("`$(typeof(backend))` either does not support unified memory or it has not yet defined `allocate(backend::$backend, T::Type, dims::Tuple; unified::Bool)`"))
550550
else
551-
allocate(backend, T, dims)
551+
return allocate(backend, T, dims)
552552
end
553553
end
554554

0 commit comments

Comments
 (0)