Skip to content

Commit 60c640f

Browse files
pqCommit Queue
authored and
Commit Queue
committed
fix accidental var introductions
Follow-up from https://dart-review.googlesource.com/c/sdk/+/341084 where I accidentally went w/ a `var` style despite surrounding use of `final`. Change-Id: I60202b032ee867989f876b8746effe83ec202bfd Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/341104 Commit-Queue: Phil Quitslund <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]>
1 parent 9ea048b commit 60c640f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/analysis_server/lib/src/services/user_prompts/dart_fix_prompt_manager.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ class DartFixPromptManager {
7272
Map<String, List<String?>> get currentContextSdkConstraints {
7373
final constraintMap = <String, List<String?>>{};
7474
for (final context in server.contextManager.analysisContexts) {
75-
var workspace = context.contextRoot.workspace;
76-
var sdkConstraints = workspace is PubWorkspace
75+
final workspace = context.contextRoot.workspace;
76+
final sdkConstraints = workspace is PubWorkspace
7777
? workspace.pubPackages
7878
.map((p) => p.sdkVersionConstraint?.toString())
7979
.toList()

0 commit comments

Comments
 (0)