linter: Enable gofumpt and run against codebase (#1848)

* linter: Enable gofumpt and run against codebase

* Address shazbert's nits

* gofumpt: Fix issues after rebase
This commit is contained in:
Adrian Gallagher
2025-03-18 10:23:16 +11:00
committed by GitHub
parent 748ed71455
commit f5faca2eb2
189 changed files with 1541 additions and 1104 deletions

View File

@@ -39,7 +39,7 @@ func Event(id, name, path string, data null.Bytes, executionType, status string,
}
return
}
var tempEvent = modelSQLite.Script{}
tempEvent := modelSQLite.Script{}
if !f {
newUUID, errUUID := uuid.NewV4()
if errUUID != nil {
@@ -82,7 +82,7 @@ func Event(id, name, path string, data null.Bytes, executionType, status string,
return
}
} else {
var tempEvent = modelPSQL.Script{
tempEvent := modelPSQL.Script{
ScriptID: id,
ScriptName: name,
ScriptPath: path,