We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e11b485 commit 74842beCopy full SHA for 74842be
license-finder.go
@@ -25,16 +25,16 @@ func copyLicenses(licenseDirs []string) error {
25
if err != nil {
26
return err
27
}
28
- filenames := make([]string, 0)
+ filenames := make(map[string]bool)
29
{
30
for _, match := range licenses {
31
for fName := range match.Files {
32
- filenames = append(filenames, fName)
+ filenames[fName] = true
33
34
35
36
37
- for _, licenseRelativePath := range filenames {
+ for licenseRelativePath := range filenames {
38
// Exclude licenses of vendored packages:
39
if strings.Contains(licenseRelativePath, "/vendor/") {
40
continue
0 commit comments