mirror of
https://github.com/hiddify/hiddify-next.git
synced 2026-06-05 21:05:07 +08:00
small fix
This commit is contained in:
parent
3ad00d7b57
commit
d9daccc74c
@ -33,7 +33,6 @@ abstract interface class ProfileRepository {
|
||||
UserOverride? userOverride,
|
||||
CancelToken? cancelToken,
|
||||
});
|
||||
|
||||
TaskEither<ProfileFailure, Unit> addLocal(
|
||||
String content, {
|
||||
UserOverride? userOverride,
|
||||
@ -260,7 +259,7 @@ class ProfileRepositoryImpl with ExceptionHandler, InfraLogger implements Profil
|
||||
},
|
||||
);
|
||||
|
||||
@visibleForTesting
|
||||
@override
|
||||
TaskEither<ProfileFailure, Unit> validateConfig(String path, String tempPath, String? profileOverride, bool debug) => TaskEither.fromEither(
|
||||
_configOptionRepo.fullOptionsOverrided(profileOverride),
|
||||
).mapLeft((configOptionFailure) => ProfileFailure.invalidConfig(null, configOptionFailure)).flatMap(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user