Skip to content

Commit 2cfdbf8

Browse files
AchoArnoldCopilot
andcommitted
refactor(api): remove redundant formatting
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5e77d279-9f4a-46bc-97b1-db6975c76faf
1 parent 16165af commit 2cfdbf8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

api/pkg/validators/validator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,14 @@ func validateAttachmentURL(ctx context.Context, c cache.Cache, attachmentURL str
198198

199199
req, err := http.NewRequest(http.MethodHead, attachmentURL, nil)
200200
if err != nil {
201-
errMsg := fmt.Sprintf("invalid url format")
201+
errMsg := "invalid url format"
202202
saveToCache(ctx, c, cacheKey, errMsg)
203203
return errors.New(errMsg)
204204
}
205205

206206
resp, err := client.Do(req)
207207
if err != nil {
208-
errMsg := fmt.Sprintf("could not reach the url")
208+
errMsg := "could not reach the url"
209209
saveToCache(ctx, c, cacheKey, errMsg)
210210
return errors.New(errMsg)
211211
}

0 commit comments

Comments
 (0)