Skip to content

Commit

Permalink
quality measure return Unknown of N/A
Browse files Browse the repository at this point in the history
  • Loading branch information
mfleisch committed May 20, 2023
1 parent 04e65d0 commit 3fdc83b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ private EnumSet<CompoundQuality.CompoundQualityFlag> asCompoundQualityData(Insta
.getAnnotation(Ms2Experiment.class)
.flatMap(exp -> exp.getAnnotation(CompoundQuality.class))
.map(CompoundQuality::getFlags)
.orElseThrow(()-> new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR,
"Compound with ID '" + instance+ "' has no Quality information!"));
.orElse(EnumSet.of(CompoundQuality.CompoundQualityFlag.UNKNOWN));
}


Expand Down

0 comments on commit 3fdc83b

Please sign in to comment.