feat(parser/keyword): remove min score
This commit is contained in:
		
							parent
							
								
									03c2819d25
								
							
						
					
					
						commit
						e4dc1adc13
					
				|  | @ -16,7 +16,6 @@ type Match struct { | ||||||
| type Conf struct { | type Conf struct { | ||||||
| 	Score            int | 	Score            int | ||||||
| 	FullScore        int // TODO: remove me
 | 	FullScore        int // TODO: remove me
 | ||||||
| 	MinScore         int |  | ||||||
| 	Files            []string | 	Files            []string | ||||||
| 	ForceQuitOnMatch bool | 	ForceQuitOnMatch bool | ||||||
| 	Matches          []Match | 	Matches          []Match | ||||||
|  | @ -47,7 +46,7 @@ func Parse(executorResult stage.ExecutorResult, conf Conf) ( | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	return stage.ParserResult{ | 	return stage.ParserResult{ | ||||||
| 		Score:   max(score, conf.MinScore), | 		Score:   score, | ||||||
| 		Comment: comment, | 		Comment: comment, | ||||||
| 	}, matched | 	}, matched | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user