Skip to content

Commit

Permalink
Merge pull request #146 from JuliaRobotics/hotfix/roboutilsfindfirst
Browse files Browse the repository at this point in the history
fix findfirst
  • Loading branch information
dehann committed Dec 5, 2018
2 parents 41fbf73 + 8c4c609 commit 5306c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RobotUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ function removeKeysFromArr(fgl::FactorGraph, torm::Array{Int,1}, lbl::Array{Stri
retlbs = String[]
for i in 1:length(lbl)
id = parse(Int,lbl[i][2:end])
if findfirst(torm,id) == 0
if something(findfirst(isequal(id), torm), 0) == 0 #findfirst(torm,id) == 0
push!(retlbs, lbl[i])
else
println("removeKeysFromArr -- skipping $(lbl[i]), id=$(id)")
Expand Down

0 comments on commit 5306c0d

Please sign in to comment.