Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 361161895
  • Loading branch information
Googler authored and copybara-github committed Mar 5, 2021
1 parent 374457f commit 1b18d65
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ private static AttributeValue convertAttrValue(Type<?> t, Object v) {
for (Map.Entry<?, ?> entry : ((Map<?, ?>) v).entrySet()) {
b.addDictBuilder()
.setKey(entry.getKey().toString())
.setValue(convertAttrValue(dictType.getValueType(), entry.getValue()))
.build();
.setValue(convertAttrValue(dictType.getValueType(), entry.getValue()));
}
} else if (v instanceof List) {
for (Object elem : (List<?>) v) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,7 @@ private WorkRequest createWorkRequest(
digest = ByteString.copyFromUtf8(HashCode.fromBytes(digestBytes).toString());
}

requestBuilder
.addInputsBuilder()
.setPath(input.getExecPathString())
.setDigest(digest)
.build();
requestBuilder.addInputsBuilder().setPath(input.getExecPathString()).setDigest(digest);
}
if (key.getProxied()) {
requestBuilder.setRequestId(requestIdCounter.getAndIncrement());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private static SpawnExec.Builder createSpawnExecBuilder(
List<String> inputs, List<String> outputs) {
SpawnExec.Builder e = SpawnExec.newBuilder();
for (String output : outputs) {
e.addActualOutputsBuilder().setPath(output).build();
e.addActualOutputsBuilder().setPath(output);
e.addListedOutputs(output);
}
for (String s : inputs) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ public void invocationPolicy() throws OptionsParsingException {
// Check that all-expansion behaves just like any other expansion flag and can be filtered
// by invocation policy.
InvocationPolicy.Builder invocationPolicyBuilder = InvocationPolicy.newBuilder();
invocationPolicyBuilder.addFlagPoliciesBuilder()
invocationPolicyBuilder
.addFlagPoliciesBuilder()
.setFlagName("incompatible_A")
.setUseDefault(UseDefault.getDefaultInstance())
.build();
.setUseDefault(UseDefault.getDefaultInstance());
InvocationPolicy policy = invocationPolicyBuilder.build();
InvocationPolicyEnforcer enforcer = new InvocationPolicyEnforcer(policy);

Expand Down

0 comments on commit 1b18d65

Please sign in to comment.