Skip to content

Commit

Permalink
fix: uasid asString conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
matejglejtek committed Oct 2, 2023
1 parent 2c08909 commit 6018e98
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 6018e98

Please sign in to comment.