Skip to content

Commit

Permalink
Unchecked io
Browse files Browse the repository at this point in the history
  • Loading branch information
n1v0lg committed Feb 20, 2024
1 parent 136106b commit d07d25c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.elasticsearch.xpack.core.security.authz.RoleDescriptor;

import java.io.IOException;
import java.io.UncheckedIOException;
import java.util.List;
import java.util.Map;
import java.util.function.BiFunction;
Expand Down Expand Up @@ -54,8 +55,7 @@ class Default implements RequestTranslator {
try {
return RoleDescriptor.parse(n, p, false);
} catch (IOException e) {
// TODO
throw new RuntimeException(e);
throw new UncheckedIOException(e);
}
});

Expand Down

0 comments on commit d07d25c

Please sign in to comment.