fix: Crashing due to incorrect type casting
This commit is contained in:
parent
680bbe1bb4
commit
f966af223a
@ -24,7 +24,8 @@ class MoxdnsAndroidPlugin extends MoxdnsPlatform {
|
||||
if (record == null) {
|
||||
continue;
|
||||
}
|
||||
final rr = Map<String, String>.from(record as Map<String, String>);
|
||||
// ignore: argument_type_not_assignable
|
||||
final rr = Map<String, String>.from(record);
|
||||
records.add(
|
||||
SrvRecord(
|
||||
rr['target']!,
|
||||
|
@ -26,7 +26,8 @@ class MoxdnsLinuxPlugin extends MoxdnsPlatform {
|
||||
if (record == null) {
|
||||
continue;
|
||||
}
|
||||
final rr = Map<String, String>.from(record as Map<String, String>);
|
||||
// ignore: argument_type_not_assignable
|
||||
final rr = Map<String, String>.from(record);
|
||||
records.add(
|
||||
SrvRecord(
|
||||
rr['target']!,
|
||||
|
Loading…
Reference in New Issue
Block a user