Remove usage of ternary conditional

This commit is contained in:
syeopite 2021-08-09 22:58:14 -07:00
parent 0c78d9211f
commit d6f9be6ee5
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82

View File

@ -765,8 +765,8 @@ struct Video
info["microformat"]?.try &.["playerMicroformatRenderer"]["isFamilySafe"]?.try &.as_bool || false
end
def is_vr : Bool
info.dig?("streamingData", "adaptiveFormats", 0, "projectionType").try &.as_s == "MESH" ? true : false || false
def is_vr : Bool?
info.dig?("streamingData", "adaptiveFormats", 0, "projectionType").try &.as_s == "MESH"
end
def wilson_score : Float64