Skip to content

Commit b36ec94

Browse files
committed
wrong check in GeoScript::Feature initializer
1 parent 87f234c commit b36ec94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/geoscript/feature/feature.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Feature
66
def initialize(attrs = nil, id = nil, schema = nil)
77
raise 'No attributes specified for feature' unless attrs
88

9-
if attrs.kind_of? GeoScript::Feature
9+
unless attrs.kind_of? GeoScript::Feature
1010
unless schema
1111
if attrs.instance_of? Hash
1212
schema_attrs = []

0 commit comments

Comments
 (0)