refactor: fix build warnings (#1090)

This commit is contained in:
Kota Kanbe
2020-12-11 06:45:39 +09:00
committed by GitHub
parent 2534098509
commit 9a32a94806
10 changed files with 43 additions and 24 deletions

View File

@@ -505,6 +505,7 @@ func (r ScanResult) RemoveRaspbianPackFromResult() ScanResult {
return result
}
// ClearFields clears a given fields of ScanResult
func (r ScanResult) ClearFields(targetTagNames []string) ScanResult {
if len(targetTagNames) == 0 {
return r