Small ternary simplification

RELNOTES=n/a

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=237370827
diff --git a/java/dagger/internal/codegen/ComponentCreatorDescriptor.java b/java/dagger/internal/codegen/ComponentCreatorDescriptor.java
index 6e3d6a4..a6ff3ab 100644
--- a/java/dagger/internal/codegen/ComponentCreatorDescriptor.java
+++ b/java/dagger/internal/codegen/ComponentCreatorDescriptor.java
@@ -208,10 +208,7 @@
           dependencyRequestFactory.forRequiredResolvedVariable(parameter, type);
       // Validation already ensured that only setter methods have @BindsInstance, so name the
       // variable for the method in that case. Otherwise, name the variable for the parameter.
-      String variableName =
-          methodIsBindsInstance
-              ? method.getSimpleName().toString()
-              : parameter.getSimpleName().toString();
+      String variableName = (methodIsBindsInstance ? method : parameter).getSimpleName().toString();
       return ComponentRequirement.forBoundInstance(
           request.key(), request.isNullable(), variableName);
     }