react-native-geofence-manager 0.1.0-beta.13 → 0.1.0-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -132,11 +132,13 @@ class GeofenceManagerModule(reactContext: ReactApplicationContext) :
132
132
  try {
133
133
  val list = mutableListOf<Geofence>()
134
134
  for (i in 0 until geofences.size()) {
135
- val item: ReadableMap = geofences.getMap(i) ?: run {
135
+ val item = geofences.getMap(i)
136
+ if (item == null) {
136
137
  Log.w(TAG, "addGeofences: index $i skipped (null map)")
137
138
  continue
138
139
  }
139
- val id = item.getString("id") ?: run {
140
+ val id = item.getString("id")
141
+ if (id == null) {
140
142
  Log.w(TAG, "addGeofences: index $i skipped (missing id)")
141
143
  continue
142
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-geofence-manager",
3
- "version": "0.1.0-beta.13",
3
+ "version": "0.1.0-beta.14",
4
4
  "description": "React Native library.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",