Inspectopedia
 
2024.3

Calling transformation function on receiver with Mono<Void> type

Warning
New
Last modified: 03 December 2024

Reports transform operations called on Mono<Void> value inside a Reactor chain.

Mono<Void> completes without any value, that's why there is nothing to invoke the transformation function on. The quick-fix suggests replacing map() and flatMap() with then().

Example:

After the quick-fix is applied:

New in 2023.1