Update thing-xml.md reduce code example to one liner (#961)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>pull/962/head
parent
bde22bd5be
commit
400a61db12
|
@ -382,9 +382,7 @@ public class ExampleDynamicCommandDescriptionProvider implements DynamicCommandD
|
|||
return null;
|
||||
}
|
||||
|
||||
CommandDescriptionBuilder builder = CommandDescriptionBuilder.create();
|
||||
options.forEach(co -> builder.withCommandOption(co));
|
||||
return builder.build();
|
||||
return CommandDescriptionBuilder.create().withCommandOptions(options).build();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue