DATAREDIS-779 - Polishing.
Reformat code. Add ticket references to tests. Original pull request: #317.
This commit is contained in:
@@ -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)));
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user