File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -297,20 +297,17 @@ _DEFAULT_TYPE_MAP[:time] = Time
297
297
function pqparse (:: Type{Time} , str:: AbstractString )
298
298
@static if v " 1.6.6" <= VERSION < v " 1.7.0" || VERSION >= " 1.7.2"
299
299
result = tryparse (Time, str)
300
- if isnothing (result)
301
- # If there's an error we want to see it here
302
- result = parse (Time, _trunc_seconds (str))
303
- end
304
- return result
300
+ # If there's an error we want to see it here
301
+ return isnothing (result) ? parse (Time, _trunc_seconds (str)) : result
305
302
else
306
303
try
307
304
return parse (Time, str)
308
305
catch err
309
306
if ! (err isa InexactError)
310
307
rethrow (err)
311
308
end
312
- return parse (Time, _trunc_seconds (str))
313
309
end
310
+ return parse (Time, _trunc_seconds (str))
314
311
end
315
312
end
316
313
You can’t perform that action at this time.
0 commit comments