mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
fix: null dist
This commit is contained in:
@@ -109,13 +109,9 @@ String? _parseUpTime(String raw) {
|
||||
}
|
||||
|
||||
String? _parseSysVer(String raw, String hostname) {
|
||||
try {
|
||||
final s = raw.split('=');
|
||||
if (s.length == 2) {
|
||||
return s[1].replaceAll('"', '').replaceFirst('\n', '');
|
||||
}
|
||||
} finally {
|
||||
// ignore: control_flow_in_finally
|
||||
return hostname.isEmpty ? null : hostname;
|
||||
final s = raw.split('=');
|
||||
if (s.length == 2) {
|
||||
return s[1].replaceAll('"', '').replaceFirst('\n', '');
|
||||
}
|
||||
return hostname.isEmpty ? null : hostname;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user