From da5a82ef4b892c4363de508c92f351982d3dfbf3 Mon Sep 17 00:00:00 2001 From: Glenn Wilkinson Date: Mon, 7 Dec 2020 22:18:25 +0100 Subject: [PATCH] Removed duplicate string function call --- models/attachment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/attachment.go b/models/attachment.go index ba5378be..2e7d49b7 100644 --- a/models/attachment.go +++ b/models/attachment.go @@ -132,7 +132,7 @@ func (a *Attachment) ApplyTemplate(ptx PhishingTemplateContext) (io.Reader, erro if err != nil { return nil, err } - if processedAttachment == string(string(b)) { + if processedAttachment == string(b) { a.vanillaFile = true } return strings.NewReader(processedAttachment), nil