mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	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
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -54,7 +54,7 @@ module Ameba
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      case value = node.value
 | 
					      case value = node.value
 | 
				
			||||||
      when String then Severity.parse(value)
 | 
					      when String then Severity.parse(value)
 | 
				
			||||||
      when Nil    then nil
 | 
					      when Nil    then raise "Missing severity"
 | 
				
			||||||
      else
 | 
					      else
 | 
				
			||||||
        raise "Incorrect severity: #{value}"
 | 
					        raise "Incorrect severity: #{value}"
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue