Skip to content

Commit

Permalink
Remove useless check
Browse files Browse the repository at this point in the history
  • Loading branch information
gilles-duboscq committed May 23, 2024
1 parent 1c3d941 commit b51946f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public List<Descriptor> listDescriptors() {
}

private static DescriptorImpl asDescriptor(OptionDescriptor descriptor) {
if (descriptor == null || !RuntimeOptionValues.singleton().getAllOptionNames().contains(descriptor.getName())) {
if (descriptor == null) {
return null;
}
String help = descriptor.getHelp();
Expand Down

0 comments on commit b51946f

Please sign in to comment.