Skip to content

Commit

Permalink
Swapped assert for RuntimeException
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeByDrescher committed Nov 27, 2024
1 parent 80b6a6f commit be639af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ KisaoOntology parse() {
boolean inState = false;

InputStream is = KisaoTermParser.class.getClassLoader().getResourceAsStream(Kisao_OBO);
assert is != null;
if (is == null) throw new RuntimeException("Unable to load OBO file necessary for KiSAO!");

try {
for (String line : (new BufferedReader(new InputStreamReader(is))).lines().toList()){
Expand Down

0 comments on commit be639af

Please sign in to comment.