opt: more linter (#1765)

* opt: more linter

* fix [skip ci]

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>

---------

Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
My-Responsitories
2025-12-07 23:46:42 +08:00
committed by GitHub
parent 3787f99d35
commit 773bdafec3
22 changed files with 55 additions and 49 deletions

View File

@@ -64,7 +64,7 @@ class WebDav {
Future<void> backup() async {
if (_client == null) {
final res = await init();
if (res.first == false) {
if (!res.first) {
SmartDialog.showToast('备份失败,请检查配置: ${res.second}');
return;
}
@@ -86,7 +86,7 @@ class WebDav {
Future<void> restore() async {
if (_client == null) {
final res = await init();
if (res.first == false) {
if (!res.first) {
SmartDialog.showToast('恢复失败,请检查配置: ${res.second}');
return;
}