DATAREDIS-779 - Polishing.

Reformat code. Add ticket references to tests.

Original pull request: #317.
This commit is contained in:
Mark Paluch
2018-03-07 10:34:29 +01:00
parent fe80804873
commit 2bc940a558
2 changed files with 3 additions and 4 deletions

View File

@@ -94,8 +94,7 @@ class LettuceReactiveStringCommands implements ReactiveStringCommands {
Mono<String> mono = args != null ? cmd.set(command.getKey(), command.getValue(), args)
: cmd.set(command.getKey(), command.getValue());
return mono.map(LettuceConverters::stringToBoolean)
.map(value -> new BooleanResponse<>(command, value))
return mono.map(LettuceConverters::stringToBoolean).map(value -> new BooleanResponse<>(command, value))
.switchIfEmpty(Mono.just(new BooleanResponse<>(command, Boolean.FALSE)));
}));
}