ruby: remove useless raise in unit_find

develop
jj 2012-06-29 11:29:36 +02:00
parent 56ff129ee0
commit 592c0a41ac
1 changed files with 0 additions and 2 deletions

@ -14,8 +14,6 @@ module DFHack
when :LookAround
k = ui_look_list.items[ui_look_cursor]
k.unit if k.type == :Unit
else
raise "bad UI mode #{ui.main.mode.inspect}"
end
elsif what.kind_of?(Integer)
world.units.all.binsearch(what)