Typo
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
This commit is contained in:
parent
b059b0d6dd
commit
ce185ebe33
@ -1,4 +1,4 @@
|
||||
// Copyright 2015 clair authors
|
||||
// Copyright 2015, 2016 clair authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@ -18,7 +18,7 @@ import (
|
||||
"github.com/coreos/clair/database"
|
||||
)
|
||||
|
||||
func mapToSlices(packagesMap map[string]*database.Package) []*database.Package {
|
||||
func mapToSlice(packagesMap map[string]*database.Package) []*database.Package {
|
||||
packages := make([]*database.Package, 0, len(packagesMap))
|
||||
for _, pkg := range packagesMap {
|
||||
packages = append(packages, pkg)
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright 2015 clair authors
|
||||
// Copyright 2015, 2016 clair authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@ -100,7 +100,7 @@ func (detector *DpkgPackagesDetector) Detect(data map[string][]byte) ([]*databas
|
||||
}
|
||||
}
|
||||
|
||||
return mapToSlices(packagesMap), nil
|
||||
return mapToSlice(packagesMap), nil
|
||||
}
|
||||
|
||||
// GetRequiredFiles returns the list of files required for Detect, without
|
||||
|
@ -67,7 +67,7 @@ func (detector *PacmanPackagesDetector) Detect(data map[string][]byte) ([]*datab
|
||||
}
|
||||
packagesMap[pkg.Key()] = pkg
|
||||
}
|
||||
return mapToSlices(packagesMap), nil
|
||||
return mapToSlice(packagesMap), nil
|
||||
}
|
||||
|
||||
// GetRequiredFiles returns the list of files required for Detect, without
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright 2015 clair authors
|
||||
// Copyright 2015, 2016 clair authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@ -96,7 +96,7 @@ func (detector *RpmPackagesDetector) Detect(data map[string][]byte) ([]*database
|
||||
packagesMap[pkg.Key()] = pkg
|
||||
}
|
||||
|
||||
return mapToSlices(packagesMap), nil
|
||||
return mapToSlice(packagesMap), nil
|
||||
}
|
||||
|
||||
// GetRequiredFiles returns the list of files required for Detect, without
|
||||
|
Loading…
Reference in New Issue
Block a user