From 49e84163ff0bf8b57361235d04f2a963f7140c76 Mon Sep 17 00:00:00 2001 From: Stefan Krastanov Date: Sat, 23 Nov 2024 15:13:35 -0500 Subject: [PATCH] remove undef variable detected by JET --- src/resources/containers.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/containers.jl b/src/resources/containers.jl index 9bd0196..e31f147 100755 --- a/src/resources/containers.jl +++ b/src/resources/containers.jl @@ -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