Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Chumva committed Jul 28, 2023
1 parent 0317ad0 commit 39f2751
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,7 @@ private void collectDBTracks(@NonNull SQLiteDatabase db, @NonNull Map<String, GP
pt.speed = query.getDouble(3);
pt.hdop = query.getDouble(4);
pt.time = query.getLong(5);

if (query.isNull(6)) {
pt.heading = Float.NaN;
} else {
pt.heading = query.getFloat(6);
}
pt.heading = query.isNull(6) ? Float.NaN : query.getFloat(6);

Map<String, String> extensions = getPluginsExtensions(query.getString(7));
pt.getExtensionsToWrite().putAll(extensions);
Expand Down

0 comments on commit 39f2751

Please sign in to comment.