Skip to content
Snippets Groups Projects
Verified Commit c97dedf9 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Small type assurance

parent 1026275d
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ Base.in(rec_stage::T, rsr::RecStageRange) where T<:Integer = rsr.lower <= rec_st ...@@ -34,7 +34,7 @@ Base.in(rec_stage::T, rsr::RecStageRange) where T<:Integer = rsr.lower <= rec_st
""" """
Returns `true` if a track with a given `rec_type` contains all the reconstruction stages in `rsr::RecStageRange`. Returns `true` if a track with a given `rec_type` contains all the reconstruction stages in `rsr::RecStageRange`.
""" """
function hashistory(t::Trk, rec_type::Integer, rsr::RecStageRange) function hashistory(t::Trk, rec_type::Integer, rsr::RecStageRange)::Bool
rec_type != t.rec_type && return false rec_type != t.rec_type && return false
for rec_stage in t.rec_stages for rec_stage in t.rec_stages
!(rec_stage rsr) && return false !(rec_stage rsr) && return false
...@@ -45,7 +45,7 @@ end ...@@ -45,7 +45,7 @@ end
""" """
Returns `true` if a track with a given `rec_type` contains the `rec_stage`. Returns `true` if a track with a given `rec_type` contains the `rec_stage`.
""" """
function hashistory(t::Trk, rec_type::Integer, rec_stage::Integer) function hashistory(t::Trk, rec_type::Integer, rec_stage::Integer)::Bool
rec_type != t.rec_type && return false rec_type != t.rec_type && return false
rec_stage t.rec_stages rec_stage t.rec_stages
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment