From 5814c5b44f7249f80f398ad0cd79613e9e333ad6 Mon Sep 17 00:00:00 2001 From: Major- Date: Wed, 25 Feb 2015 16:33:57 +0000 Subject: [PATCH] Correct typo in name-lookup plugin. --- data/plugins/util/name-lookup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/plugins/util/name-lookup.rb b/data/plugins/util/name-lookup.rb index f45b5788..febb8be8 100644 --- a/data/plugins/util/name-lookup.rb +++ b/data/plugins/util/name-lookup.rb @@ -24,7 +24,7 @@ def lookup_entity(type, name) return cached unless cached.nil? id = name[name.rindex(' ') + 1, name.length - 1].to_i if name.include?(' ') - id = find_entities(type, name, 1).first if (id .nil? || id.zero?) + id = find_entities(type, name, 1).first if (id.nil? || id.zero?) raise "The #{type} called #{name} could not be identified." if id.nil?