Update find.jl

pull/22/head
matthieugomez 2019-12-13 09:15:39 -05:00
parent e4f50dcda7
commit bd26ecd1d5
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ function Base.findmax(s::AbstractString, itr, dist::StringDistance; min_score =
is[Threads.threadid()] = i
end
end
i = argmax(vs)
is[i] == 0 ? (nothing, nothing) : (itr[is[i]], is[i])
imax = is[argmax(vs)]
imax == 0 ? (nothing, nothing) : (itr[imax], imax)
end