Skip to content

Commit 9164854

Browse files
committed
Update sample_set.rb
1 parent 7773a16 commit 9164854

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/models/sample_set.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class << self
173173
def missing
174174
[
175175
'not provided', 'not collected', 'unavailable', 'not applicable',
176-
'missing', '-', 'n/a', 'null', ''
176+
'restricted access', 'missing', '-', 'n/a', 'null', ''
177177
]
178178
end
179179

@@ -283,7 +283,7 @@ def location_type
283283
end
284284

285285
def as_location
286-
return unless missing_value? || location?
286+
return if missing_value? || !location?
287287

288288
coord = /([-+] *)?(\d+(?:[\.\,]\d+)?|\d+°(?:\d+['"])*)( *[NSEW])?/
289289
if location_type == :lat_lon

0 commit comments

Comments
 (0)