From a10dd67e0f0dd7480da817f6012e5e13f576cb94 Mon Sep 17 00:00:00 2001 From: gy741 Date: Mon, 6 Apr 2020 15:00:43 +0900 Subject: [PATCH] Fix typo in models/scanresults.go (#942) --- models/scanresults.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/scanresults.go b/models/scanresults.go index dcdc9ebf..4cd83602 100644 --- a/models/scanresults.go +++ b/models/scanresults.go @@ -273,7 +273,7 @@ func (r ScanResult) FilterInactiveWordPressLibs() ScanResult { return r } -// ReportFileName returns the filename on localhost without extention +// ReportFileName returns the filename on localhost without extension func (r ScanResult) ReportFileName() (name string) { if len(r.Container.ContainerID) == 0 { return fmt.Sprintf("%s", r.ServerName) @@ -281,7 +281,7 @@ func (r ScanResult) ReportFileName() (name string) { return fmt.Sprintf("%s@%s", r.Container.Name, r.ServerName) } -// ReportKeyName returns the name of key on S3, Azure-Blob without extention +// ReportKeyName returns the name of key on S3, Azure-Blob without extension func (r ScanResult) ReportKeyName() (name string) { timestr := r.ScannedAt.Format(time.RFC3339) if len(r.Container.ContainerID) == 0 {