Skip to content

Commit

Permalink
Continue to next subscription instead of exiting method
Browse files Browse the repository at this point in the history
  • Loading branch information
versx committed Dec 15, 2020
1 parent c1047c6 commit 7150f16
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Data/Subscriptions/SubscriptionProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ GeofenceItem GetGeofence(ulong guildId)
if (geofence == null)
{
//_logger.Warn($"Failed to lookup city from coordinates {pkmn.Latitude},{pkmn.Longitude} {db.Pokemon[pkmn.Id].Name} {pkmn.IV}, skipping...");
return;
continue;
}

var distanceMatches = user.DistanceM > 0 && user.DistanceM > new Coordinates(user.Latitude, user.Longitude).DistanceTo(new Coordinates(pkmn.Latitude, pkmn.Longitude));
Expand Down Expand Up @@ -320,7 +320,7 @@ GeofenceItem GetGeofence(ulong guildId)
if (geofence == null)
{
//_logger.Warn($"Failed to lookup city from coordinates {pkmn.Latitude},{pkmn.Longitude} {db.Pokemon[pkmn.Id].Name} {pkmn.IV}, skipping...");
return;
continue;
}

var distanceMatches = user.DistanceM > 0 && user.DistanceM > new Coordinates(user.Latitude, user.Longitude).DistanceTo(new Coordinates(pkmn.Latitude, pkmn.Longitude));
Expand Down Expand Up @@ -449,7 +449,7 @@ GeofenceItem GetGeofence(ulong guildId)
if (geofence == null)
{
//_logger.Warn($"Failed to lookup city from coordinates {pkmn.Latitude},{pkmn.Longitude} {db.Pokemon[pkmn.Id].Name} {pkmn.IV}, skipping...");
return;
continue;
}

var distanceMatches = user.DistanceM > 0 && user.DistanceM > new Coordinates(user.Latitude, user.Longitude).DistanceTo(new Coordinates(raid.Latitude, raid.Longitude));
Expand Down Expand Up @@ -561,7 +561,7 @@ GeofenceItem GetGeofence(ulong guildId)
if (geofence == null)
{
//_logger.Warn($"Failed to lookup city from coordinates {pkmn.Latitude},{pkmn.Longitude} {db.Pokemon[pkmn.Id].Name} {pkmn.IV}, skipping...");
return;
continue;
}

var distanceMatches = user.DistanceM > 0 && user.DistanceM > new Coordinates(user.Latitude, user.Longitude).DistanceTo(new Coordinates(quest.Latitude, quest.Longitude));
Expand Down Expand Up @@ -678,7 +678,7 @@ GeofenceItem GetGeofence(ulong guildId)
if (geofence == null)
{
//_logger.Warn($"Failed to lookup city from coordinates {pkmn.Latitude},{pkmn.Longitude} {db.Pokemon[pkmn.Id].Name} {pkmn.IV}, skipping...");
return;
continue;
}

var distanceMatches = user.DistanceM > 0 && user.DistanceM > new Coordinates(user.Latitude, user.Longitude).DistanceTo(new Coordinates(pokestop.Latitude, pokestop.Longitude));
Expand Down

0 comments on commit 7150f16

Please sign in to comment.