Skip to content

Commit

Permalink
Improved speed of geojson casting
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Dec 29, 2017
1 parent ec6ea95 commit 0973070
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/types/geojson.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ function castGeojson(format, value) {
} catch (error) {
return ERROR
}
if (!isPlainObject(value)) {
return ERROR
}
}
if (format === 'default') {
try {
Expand Down

0 comments on commit 0973070

Please sign in to comment.