mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fixed dart analyze issues
This commit is contained in:
parent
f7d53c3b97
commit
50aca1b4c1
3 changed files with 6 additions and 6 deletions
1
mobile/lib/services/flutter
Submodule
1
mobile/lib/services/flutter
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit edada7c56edf4a183c1735310e123c7f923584f1
|
||||||
|
|
@ -16,15 +16,15 @@ String? getServerUrl() {
|
||||||
if (serverUri == null) {
|
if (serverUri == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
var URIToDecodeFull = "${serverUri.scheme}://";
|
var UriToDecodeToFull = "${serverUri.scheme}://";
|
||||||
if (serverUri.userInfo.isNotEmpty){
|
if (serverUri.userInfo.isNotEmpty){
|
||||||
URIToDecodeFull += "${serverUri.userInfo}@";
|
UriToDecodeToFull += "${serverUri.userInfo}@";
|
||||||
}
|
}
|
||||||
URIToDecodeFull += "${serverUri.host}";
|
UriToDecodeToFull += serverUri.host;
|
||||||
if(serverUri.hasPort){
|
if(serverUri.hasPort){
|
||||||
URIToDecodeFull += ":${serverUri.port}";
|
UriToDecodeToFull += ":${serverUri.port}";
|
||||||
}
|
}
|
||||||
return Uri.decodeFull(URIToDecodeFull);
|
return Uri.decodeFull(UriToDecodeToFull);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Converts a Unicode URL to its ASCII-compatible encoding (Punycode).
|
/// Converts a Unicode URL to its ASCII-compatible encoding (Punycode).
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ import 'package:immich_mobile/utils/url_helper.dart';
|
||||||
import 'package:isar/isar.dart';
|
import 'package:isar/isar.dart';
|
||||||
|
|
||||||
import '../test_utils.dart';
|
import '../test_utils.dart';
|
||||||
import '../fixtures/user.stub.dart';
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
late Isar db;
|
late Isar db;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue