Removed check for empty array of annotations (#333)

This commit is contained in:
Tyler Cook
2016-04-29 06:44:30 -07:00
committed by Bobby Sudekum
parent c2054da3c9
commit 81014003f1
@@ -118,7 +118,7 @@ public class ReactNativeMapboxGLManager extends SimpleViewManager<MapView> {
}
public void setAnnotations(MapView view, @Nullable ReadableArray value, boolean clearMap) {
if (value == null || value.size() < 1) {
if (value == null) {
Log.e(REACT_CLASS, "Error: No annotations");
} else {
if (clearMap) {