Merge pull request #373 from crystal-ameba/fix-372
Raise when empty severity provided to `SeverityYamlConverter.from_yaml`
This commit is contained in:
commit
60948fffd0
|
@ -54,7 +54,7 @@ module Ameba
|
|||
|
||||
case value = node.value
|
||||
when String then Severity.parse(value)
|
||||
when Nil then nil
|
||||
when Nil then raise "Missing severity"
|
||||
else
|
||||
raise "Incorrect severity: #{value}"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue