From db402223668f0ffd0f1afeecc85c446bcc771ac1 Mon Sep 17 00:00:00 2001 From: Daniil Marchenko Date: Mon, 8 Jan 2024 17:50:25 +0200 Subject: [PATCH] rm nullable parameter --- packages/custom_lint_builder/lib/src/client.dart | 2 +- packages/custom_lint_core/lib/src/configs.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/custom_lint_builder/lib/src/client.dart b/packages/custom_lint_builder/lib/src/client.dart index ffa78dfa..736350a8 100644 --- a/packages/custom_lint_builder/lib/src/client.dart +++ b/packages/custom_lint_builder/lib/src/client.dart @@ -236,7 +236,7 @@ class _CustomLintAnalysisConfigs { factory _CustomLintAnalysisConfigs.from( Pubspec pubspecForContext, - PackageConfig? packageConfig, + PackageConfig packageConfig, AnalysisContext analysisContext, CustomLintPluginClient client, ) { diff --git a/packages/custom_lint_core/lib/src/configs.dart b/packages/custom_lint_core/lib/src/configs.dart index e98a3a08..852e3bab 100644 --- a/packages/custom_lint_core/lib/src/configs.dart +++ b/packages/custom_lint_core/lib/src/configs.dart @@ -21,7 +21,7 @@ class CustomLintConfigs { @internal factory CustomLintConfigs.parse( File? analysisOptionsFile, - PackageConfig? packageConfig, + PackageConfig packageConfig, ) { if (analysisOptionsFile == null || !analysisOptionsFile.exists) { return CustomLintConfigs.empty; @@ -43,7 +43,7 @@ class CustomLintConfigs { String? includeAbsolutePath; if (includeUri.scheme == 'package') { - final packageUri = packageConfig?.resolve(includeUri); + final packageUri = packageConfig.resolve(includeUri); includeAbsolutePath = packageUri?.toFilePath(); } else { includeAbsolutePath = normalize(