Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalii committed Jul 28, 2020
1 parent ed348f2 commit de22da7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
import java.util.concurrent.CompletableFuture;

public interface CounterRepository extends JpaRepository<Counter, Integer> {

CompletableFuture<Counter> findById(int id);
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public class CounterMutationResolver implements GraphQLMutationResolver {
public CompletableFuture<Counter> addServerCounter(int amount) {
log.debug("Updating counter");
return repository.findById(CounterConstants.ID)
.thenApply(
counter -> {
.thenApply(counter -> {
counter.increaseAmount(amount);
repository.save(counter);
publisher.publish(counter);
Expand Down

0 comments on commit de22da7

Please sign in to comment.