Skip to content

Commit

Permalink
fixed some sonar issues;
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Maute <stefan.maute@bosch.io>
  • Loading branch information
Stefan Maute committed Apr 20, 2021
1 parent c3d9b40 commit 848bd4c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -405,7 +405,7 @@ private static void useLiveCommands(final DittoClient backendClient, final Ditto
backendClient.live()
.forFeature(thingId, "temp-sensor")
.putProperty("temperature", 23.21)
.whenComplete((_void, throwable) -> {
.whenComplete((unused, throwable) -> {
if (throwable != null) {
LOGGER.error("[AT BACKEND] Received error when putting the property: {}",
throwable.getMessage(), throwable);
Expand Down Expand Up @@ -565,7 +565,7 @@ private static void performLoadTestUpdate(final DittoClient client,
.forEach(counter -> thingIds.forEach(thingId -> executorService.execute(() -> {
final long startTs2 = System.nanoTime();
client.twin().forId(thingId).putAttribute("counter", counter,
Options.Modify.responseRequired(false)).whenComplete((_void, throwable) ->
Options.Modify.responseRequired(false)).whenComplete((unused, throwable) ->
{
if (throwable != null) {
LOGGER.debug("performLoadTestUpdate: Updating attribute failed: {}",
Expand Down

0 comments on commit 848bd4c

Please sign in to comment.