From 49e3654ab80d07dbcde9efb0246ba1ceeeea8839 Mon Sep 17 00:00:00 2001 From: Sergey Penkovsky Date: Wed, 28 May 2025 01:35:46 +0300 Subject: [PATCH] fix: fixed warnings --- cherrypick_generator/analysis_options.yaml | 4 ++++ cherrypick_generator/lib/src/bind_spec.dart | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cherrypick_generator/analysis_options.yaml b/cherrypick_generator/analysis_options.yaml index dee8927..b3846de 100644 --- a/cherrypick_generator/analysis_options.yaml +++ b/cherrypick_generator/analysis_options.yaml @@ -28,3 +28,7 @@ include: package:lints/recommended.yaml # For additional information about configuring this file, see # https://dart.dev/guides/language/analysis-options + +analyzer: + errors: + deprecated_member_use: ignore \ No newline at end of file diff --git a/cherrypick_generator/lib/src/bind_spec.dart b/cherrypick_generator/lib/src/bind_spec.dart index 4046bc2..bf7dcd9 100644 --- a/cherrypick_generator/lib/src/bind_spec.dart +++ b/cherrypick_generator/lib/src/bind_spec.dart @@ -131,7 +131,6 @@ class BindSpec { // ? '.toInstanceAsync(($fnArgs) => $methodName($fnArgs))' // : '.toInstance(($fnArgs) => $methodName($fnArgs))'; case BindingType.provide: - default: if (isAsyncProvide) { return multiLine ? '.toProvideAsyncWithParams(\n${' ' * (indent + 2)}($paramVar) => $methodName($fnArgs))' @@ -154,7 +153,6 @@ class BindSpec { ? '.toInstanceAsync($methodName($argsStr))' : '.toInstance($methodName($argsStr))'; case BindingType.provide: - default: if (isAsyncProvide) { return multiLine ? '.toProvideAsync(\n${' ' * (indent + 2)}() => $methodName($argsStr))'