Skip to content

Commit 6eb7419

Browse files
Local variable 'saga' is redundant
1 parent fa12f9e commit 6eb7419

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/client/DtmClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ public void tccGlobalTransaction(String gid, DtmConsumer<Tcc> function) throws E
9393
* @param gid
9494
*/
9595
public Saga newSaga(String gid) {
96-
Saga saga = new Saga(ipPort, gid);
97-
return saga;
96+
return new Saga(ipPort, gid);
9897
}
9998
}

0 commit comments

Comments
 (0)