Skip to content

Commit

Permalink
remove undef variable detected by JET
Browse files Browse the repository at this point in the history
  • Loading branch information
Krastanov committed Nov 23, 2024
1 parent 5e404d4 commit 49e8416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resources/containers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ mutable struct Container{N<:Real, T<:Number} <: AbstractResource
end
end

function Container(env::Environment, capacity::N=one(N); level=zero(N)) where {N<:Real}
function Container(env::Environment, capacity::N; level=zero(N)) where {N<:Real}
Container{N, Int}(env, capacity; level=N(level))
end

function Container{T}(env::Environment, capacity::N=one(N); level=zero(N)) where {N<:Real, T<:Number}
function Container{T}(env::Environment, capacity::N; level=zero(N)) where {N<:Real, T<:Number}
Container{N, T}(env, capacity; level=N(level))
end

Expand Down

0 comments on commit 49e8416

Please sign in to comment.