Skip to content

Commit

Permalink
fix: Fix runtimeType incorrectly used for UASID.asString() (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
marianhlavac committed Oct 3, 2023
2 parents 2c08909 + 6018e98 commit e6ee8b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/utils/conversions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,12 @@ extension SpeedAccuracyConversion on SpeedAccuracy {
}

extension UASIDConversion on UASID {
String? asString() => switch (this.runtimeType) {
String? asString() => switch (this) {
IDNone() => null,
SerialNumber(serialNumber: final sn) => sn,
CAARegistrationID(registrationID: final regId) => regId,
UTMAssignedID(id: final id) => id.toHexString(),
SpecificSessionID(id: final id) => id.toHexString(),
_ => null,
};
}

Expand Down

0 comments on commit e6ee8b5

Please sign in to comment.