Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 983d6b9

Browse files
author
Rajeev Kumar Singh
committed
cleanup
1 parent 520e448 commit 983d6b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/main/java/com/example/webfluxdemo/controller/TweetController.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public Mono<Tweet> createTweets(@Valid @RequestBody Tweet tweet) {
3737
@GetMapping("/tweets/{id}")
3838
public Mono<Tweet> getTweetById(@PathVariable(value = "id") String tweetId) {
3939
return tweetRepository.findById(tweetId)
40-
.switchIfEmpty(Mono.error(new TweetNotFoundException("Tweet not found with id "+ tweetId)));
40+
.switchIfEmpty(Mono.error(new TweetNotFoundException(tweetId)));
4141
}
4242

4343
@PutMapping("/tweets/{id}")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /