Skip to content

Commit e8a0e1e

Browse files
refactor: turn unnecessary value into unwrap
1 parent ec23072 commit e8a0e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ModelingToolkitBase/src/discretedomain.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct Shift <: Operator
2323
"""Fixed Shift"""
2424
t::Union{Nothing, SymbolicT}
2525
steps::Int
26-
Shift(t, steps = 1) = new(value(t), steps)
26+
Shift(t, steps = 1) = new(unwrap(t), steps)
2727
end
2828
Shift(steps::Int) = new(nothing, steps)
2929
normalize_to_differential(s::Shift) = Differential(s.t)^s.steps

0 commit comments

Comments
 (0)