Skip to content

Commit 2bc940a

Browse files
committed
DATAREDIS-779 - Polishing.
Reformat code. Add ticket references to tests. Original pull request: spring-projects#317.
1 parent fe80804 commit 2bc940a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/main/java/org/springframework/data/redis/connection/lettuce/LettuceReactiveStringCommands.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ public Flux<BooleanResponse<SetCommand>> set(Publisher<SetCommand> commands) {
9494

9595
Mono<String> mono = args != null ? cmd.set(command.getKey(), command.getValue(), args)
9696
: cmd.set(command.getKey(), command.getValue());
97-
return mono.map(LettuceConverters::stringToBoolean)
98-
.map(value -> new BooleanResponse<>(command, value))
97+
return mono.map(LettuceConverters::stringToBoolean).map(value -> new BooleanResponse<>(command, value))
9998
.switchIfEmpty(Mono.just(new BooleanResponse<>(command, Boolean.FALSE)));
10099
}));
101100
}

src/test/java/org/springframework/data/redis/core/DefaultReactiveValueOperationsIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public void setWithExpiry() {
124124
.verify();
125125
}
126126

127-
@Test // DATAREDIS-602
127+
@Test // DATAREDIS-602, DATAREDIS-779
128128
public void setIfAbsent() {
129129

130130
K key = keyFactory.instance();
@@ -135,7 +135,7 @@ public void setIfAbsent() {
135135
StepVerifier.create(valueOperations.setIfAbsent(key, value)).expectNext(false).verifyComplete();
136136
}
137137

138-
@Test // DATAREDIS-602
138+
@Test // DATAREDIS-602, DATAREDIS-779
139139
public void setIfPresent() {
140140

141141
K key = keyFactory.instance();

0 commit comments

Comments
 (0)