Skip to content

Commit 465bae9

Browse files
author
danrubel
committed
null namespace check - fixes #25331
Review URL: https://codereview.chromium.org/1554153002 .
1 parent b852ddc commit 465bae9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/analysis_server/lib/src/services/completion/dart/completion_manager.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,7 @@ class DartCompletionRequestImpl implements DartCompletionRequest {
204204
@override
205205
Future<List<Directive>> resolveDirectives() async {
206206
CompilationUnit libUnit;
207-
if (librarySource == source) {
208-
libUnit = target.unit;
209-
} else if (librarySource != null) {
207+
if (librarySource != null) {
210208
// TODO(danrubel) only resolve the directives
211209
const RESOLVE_DIRECTIVES_TAG = 'resolve directives';
212210
performance.logStartTime(RESOLVE_DIRECTIVES_TAG);

0 commit comments

Comments
 (0)