Skip to content

Commit a101efc

Browse files
committed
Fix CI
1 parent ede6cbf commit a101efc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/discretedomain.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Base.:-(k::ShiftIndex, i::Int) = k + (-i)
228228
229229
Return the time-domain type (`Continuous` or `InferredDiscrete`) that `op` operates on.
230230
"""
231-
function input_timedomain(s::Shift, arg)
231+
function input_timedomain(s::Shift, arg = nothing)
232232
if has_time_domain(arg)
233233
return get_time_domain(arg)
234234
end
@@ -240,26 +240,26 @@ end
240240
241241
Return the time-domain type (`Continuous` or `InferredDiscrete`) that `op` results in.
242242
"""
243-
function output_timedomain(s::Shift, arg)
243+
function output_timedomain(s::Shift, arg = nothing)
244244
if has_time_domain(t, arg)
245245
return get_time_domain(t, arg)
246246
end
247247
InferredDiscrete
248248
end
249249

250-
input_timedomain(::Sample, _) = Continuous
251-
output_timedomain(s::Sample, _) = s.clock
250+
input_timedomain(::Sample, _ = nothing) = Continuous
251+
output_timedomain(s::Sample, _ = nothing) = s.clock
252252

253-
function input_timedomain(h::Hold, arg)
253+
function input_timedomain(h::Hold, arg = nothing)
254254
if has_time_domain(arg)
255255
return get_time_domain(arg)
256256
end
257257
InferredDiscrete # the Hold accepts any discrete
258258
end
259-
output_timedomain(::Hold, _) = Continuous
259+
output_timedomain(::Hold, _ = nothing) = Continuous
260260

261-
sampletime(_, op::Sample, _) = sampletime(op.clock)
262-
sampletime(_, op::ShiftIndex, _) = sampletime(op.clock)
261+
sampletime(op::Sample, _ = nothing) = sampletime(op.clock)
262+
sampletime(op::ShiftIndex, _ = nothing) = sampletime(op.clock)
263263

264264
changes_domain(op) = isoperator(op, Union{Sample, Hold})
265265

0 commit comments

Comments
 (0)