Skip to content

Commit

Permalink
Minor code review fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Stanchev Aleksandar <aleksandar.stanchev@bosch.io>
  • Loading branch information
Stanchev Aleksandar committed Nov 3, 2022
1 parent 80fb355 commit 4159ec4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ curl -X PATCH -H 'Content-Type: application/json' -H 'condition: eq(features/ala

### Conditional request with HTTP query parameter
```
curl -X PATCH -H 'Content-Type: application/json' /api/2/things/org.eclipse.ditto:carbon-monoxide-alarm/outbox/messages/co-alarm?eq(features/alarm/properties/confirmed/,false) -d '{ "CO Level to high! Open your windows!" }'
curl -X PATCH -H 'Content-Type: application/json' /api/2/things/org.eclipse.ditto:carbon-monoxide-alarm/outbox/messages/co-alarm?condition=eq(features/alarm/properties/confirmed/,false) -d '{ "CO Level to high! Open your windows!" }'
```

## Conditional request via Ditto protocol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private ThingConditionValidator() {
public static Optional<ThingConditionFailedException> validate(final Signal<?> signal,
final String condition, @Nullable final Thing entity) {

checkNotNull(signal, "Command");
checkNotNull(signal, "Signal");

final Optional<ThingConditionFailedException> result;
if (!(signal instanceof CreateThing) && entity != null) {
Expand Down

0 comments on commit 4159ec4

Please sign in to comment.