From ce185ebe3396575d974bd49f70607f09999f1f81 Mon Sep 17 00:00:00 2001 From: Nicolas Lamirault Date: Tue, 12 Jan 2016 22:27:38 +0100 Subject: [PATCH] Typo Signed-off-by: Nicolas Lamirault --- worker/detectors/packages/commons.go | 4 ++-- worker/detectors/packages/dpkg.go | 4 ++-- worker/detectors/packages/pacman.go | 2 +- worker/detectors/packages/rpm.go | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/worker/detectors/packages/commons.go b/worker/detectors/packages/commons.go index 6b13d031..1823cc76 100644 --- a/worker/detectors/packages/commons.go +++ b/worker/detectors/packages/commons.go @@ -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) diff --git a/worker/detectors/packages/dpkg.go b/worker/detectors/packages/dpkg.go index 92c78050..f33e94fd 100644 --- a/worker/detectors/packages/dpkg.go +++ b/worker/detectors/packages/dpkg.go @@ -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 diff --git a/worker/detectors/packages/pacman.go b/worker/detectors/packages/pacman.go index fc3936f4..d3de87ca 100644 --- a/worker/detectors/packages/pacman.go +++ b/worker/detectors/packages/pacman.go @@ -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 diff --git a/worker/detectors/packages/rpm.go b/worker/detectors/packages/rpm.go index 44b84dd2..096a77aa 100644 --- a/worker/detectors/packages/rpm.go +++ b/worker/detectors/packages/rpm.go @@ -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