Skip to content

Commit

Permalink
Update src/hyperparam/one_dimensional_ranges.jl
Browse files Browse the repository at this point in the history
refactored type check

Co-authored-by: Anthony Blaom, PhD <[email protected]>
  • Loading branch information
adarshpalaskar1 and ablaom authored Feb 2, 2024
1 parent 8630c19 commit 387e7f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hyperparam/one_dimensional_ranges.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ end
# throws an exception:
function _repr(r::NumericRange{T}, field) where T
value = getproperty(r, field)
if !(typeof(value) <: Integer)
if !(value isa Integer)
value = round(value, sigdigits=4)
end
r.scale isa Symbol && return repr(value)
Expand Down

0 comments on commit 387e7f3

Please sign in to comment.