Skip to content

Commit 6d91b46

Browse files
authored
Merge pull request #301 from D-system/standardrb-fix-performance_inefficient_hash_search
Syntax: Update syntax for Performance/InefficientHashSearch
2 parents f01abb1 + e39c2d4 commit 6d91b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/csvlint/csvw/property_checker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def column_reference_property(type)
285285
warnings = []
286286
if value.instance_of? Hash
287287
if value["@id"]
288-
raise Csvlint::Csvw::MetadataError.new("datatype.@id"), "datatype @id must not be the id of a built-in datatype (#{value["@id"]})" if BUILT_IN_DATATYPES.values.include?(value["@id"])
288+
raise Csvlint::Csvw::MetadataError.new("datatype.@id"), "datatype @id must not be the id of a built-in datatype (#{value["@id"]})" if BUILT_IN_DATATYPES.value?(value["@id"])
289289
_, w, _ = PROPERTIES["@id"].call(value["@id"], base_url, lang)
290290
unless w.nil?
291291
warnings << w

0 commit comments

Comments
 (0)