Skip to content

Commit

Permalink
Delete redundant logic in FrameworkType.
Browse files Browse the repository at this point in the history
RELNOTES=n/a
PiperOrigin-RevId: 625462723
  • Loading branch information
wanyingd1996 authored and Dagger Team committed Apr 16, 2024
1 parent db25237 commit 4077ea0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions java/dagger/internal/codegen/binding/FrameworkType.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ public Expression to(
from.codeBlock()));

case PRODUCER:
return Expression.create(from.type(), to(
requestKind,
from.codeBlock()));
return from;

default:
throw new IllegalArgumentException(
Expand Down

0 comments on commit 4077ea0

Please sign in to comment.