mirror of https://github.com/docker/buildx.git
add length check for lint message regex result
Signed-off-by: Talon Bowler <talon.bowler@docker.com>
This commit is contained in:
parent
d342cb9d03
commit
1e916ae6c6
|
@ -459,7 +459,7 @@ func kebabToCamel(s string) string {
|
|||
func (mr *lintMetricRecorder) Record(ss *client.SolveStatus) {
|
||||
for _, warning := range ss.Warnings {
|
||||
m := reLintMessage.FindSubmatch([]byte(warning.URL))
|
||||
if m == nil {
|
||||
if len(m) < 2 {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue