diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 64144d4..790d08b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,9 @@ jobs: channel: stable cache: true - run: flutter pub get - - run: flutter analyze + # info 级别不致命:仓库标准是 0 error/warning(见 README), + # 否则依赖升级带进来的 deprecation 提示就会打断整条流水线。 + - run: flutter analyze --no-fatal-infos - run: flutter test android: diff --git a/lib/services/title_api_service.dart b/lib/services/title_api_service.dart index 03307c7..29c2f7b 100644 --- a/lib/services/title_api_service.dart +++ b/lib/services/title_api_service.dart @@ -42,7 +42,7 @@ class TitleApiService { final TitleServerConfig _config; String? _cookies; - TitleApiService(this._config, {String? cookies}) : _cookies = cookies; + TitleApiService(this._config, {this._cookies}); String? get cookies => _cookies;