From bb88034fa880cdc0d3845c0116ddc588c988b97a Mon Sep 17 00:00:00 2001 From: Liam Burnand Date: Fri, 12 Jul 2024 03:26:47 +0100 Subject: [PATCH] Fixing linting --- views/officership.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/officership.go b/views/officership.go index 52d6ad1..02ab2c7 100644 --- a/views/officership.go +++ b/views/officership.go @@ -555,7 +555,7 @@ func (v *Views) OfficerEditFunc(c echo.Context) error { tempEndDate := c.FormValue("endDate") if tempStartDate == "" { - return fmt.Errorf("start date cannot be blank") + return errors.New("start date cannot be blank") } parsedStart, err := time.Parse("02/01/2006", tempStartDate)