Skip to content

Commit

Permalink
Local variable 'saga' is redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
li-xiao-shuang committed Apr 13, 2022
1 parent fa12f9e commit 6eb7419
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/client/DtmClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public void tccGlobalTransaction(String gid, DtmConsumer<Tcc> function) throws E
* @param gid
*/
public Saga newSaga(String gid) {
Saga saga = new Saga(ipPort, gid);
return saga;
return new Saga(ipPort, gid);
}
}

0 comments on commit 6eb7419

Please sign in to comment.