diff options
author | Janak Ramakrishnan <janakr@google.com> | 2016-01-05 16:32:18 +0000 |
---|---|---|
committer | Philipp Wollermann <philwo@google.com> | 2016-01-07 13:45:02 +0000 |
commit | 916764857e647b2d9be02a38b8db2969dc6a642a (patch) | |
tree | 90393b35035de908ff72f6caee85fd7b0d2729f9 | |
parent | 746b51e98e24ae531286baf9f2041606b393d692 (diff) |
Remove empty put when preloadOrThrow throws a TargetParsingException. preloadOrThrow now only throws when in nokeep-going mode, and so the put now does nothing.
--
MOS_MIGRATED_REVID=111417679
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/query2/AbstractBlazeQueryEnvironment.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/query2/AbstractBlazeQueryEnvironment.java b/src/main/java/com/google/devtools/build/lib/query2/AbstractBlazeQueryEnvironment.java index a798d7850b..beba2f3ee8 100644 --- a/src/main/java/com/google/devtools/build/lib/query2/AbstractBlazeQueryEnvironment.java +++ b/src/main/java/com/google/devtools/build/lib/query2/AbstractBlazeQueryEnvironment.java @@ -15,7 +15,6 @@ package com.google.devtools.build.lib.query2; import com.google.common.base.Predicate; import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableSet; import com.google.common.collect.Iterables; import com.google.common.collect.Sets; import com.google.devtools.build.lib.cmdline.Label; @@ -231,7 +230,6 @@ public abstract class AbstractBlazeQueryEnvironment<T> implements QueryEnvironme resolvedTargetPatterns.putAll(preloadOrThrow(caller, ImmutableList.of(pattern))); } catch (TargetParsingException e) { // Will skip the target and keep going if -k is specified. - resolvedTargetPatterns.put(pattern, ImmutableSet.<Target>of()); reportBuildFileError(caller, e.getMessage()); } } |