Skip to content

Commit

Permalink
fix(detector): Adding back in support for lowercase preferred project…
Browse files Browse the repository at this point in the history
… detector.
  • Loading branch information
taikuukaits committed Oct 7, 2019
1 parent 3b984c3 commit 90cd601
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -225,7 +225,8 @@ private Map<DetectorType, StatusType> extractStatus(final List<DetectorEvaluatio
return statusMap;
}

private Optional<DetectorType> preferredDetectorTypeFromString(final String detectorType) {
private Optional<DetectorType> preferredDetectorTypeFromString(final String detectorTypeRaw) {
final String detectorType = detectorTypeRaw.trim().toUpperCase();
if (StringUtils.isNotBlank(detectorType)) {
if (DetectorType.POSSIBLE_NAMES.contains(detectorType)) {
return Optional.of(DetectorType.valueOf(detectorType));
Expand Down

0 comments on commit 90cd601

Please sign in to comment.