Skip to content

Commit be4d4fd

Browse files
srawlinsCommit Queue
authored andcommitted
analysis_server: minor nits
Change-Id: Ic31459d36fa425ba1cbda30e97655c1a1441c21d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/405580 Auto-Submit: Samuel Rawlins <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent ff904c0 commit be4d4fd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pkg/analysis_server/lib/src/analysis_server.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ abstract class AnalysisServer {
140140

141141
/// The object used to manage sending a subset of notifications to the client.
142142
/// The subset of notifications are those to which plugins may contribute.
143-
/// This field is `null` when the new plugin support is disabled.
144143
AbstractNotificationManager notificationManager;
145144

146145
/// A reference to the handler for executing commands.
@@ -308,11 +307,10 @@ abstract class AnalysisServer {
308307
if (baseResourceProvider is PhysicalResourceProvider) {
309308
processRunner ??= ProcessRunner();
310309
}
310+
var disablePubCommandVariable =
311+
Platform.environment[PubCommand.disablePubCommandEnvironmentKey];
311312
var pubCommand =
312-
processRunner != null &&
313-
Platform.environment[PubCommand
314-
.disablePubCommandEnvironmentKey] ==
315-
null
313+
processRunner != null && disablePubCommandVariable == null
316314
? PubCommand(
317315
instrumentationService,
318316
resourceProvider.pathContext,

0 commit comments

Comments
 (0)