Fix golint errors

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-02-02 15:24:11 +01:00
parent b11ce54ccc
commit ece54f1616
38 changed files with 134 additions and 204 deletions

View File

@@ -75,7 +75,7 @@ var (
)
func methodNotAllowed(w http.ResponseWriter, r *http.Request) {
defer r.Body.Close()
defer func() { _ = r.Body.Close() }()
httpserver.RenderJSON(
w,
@@ -87,7 +87,7 @@ func methodNotAllowed(w http.ResponseWriter, r *http.Request) {
}
func notFound(w http.ResponseWriter, r *http.Request) {
defer r.Body.Close()
defer func() { _ = r.Body.Close() }()
httpserver.RenderJSON(
w,

View File

@@ -35,8 +35,8 @@ type Datum struct {
UpdatedAt time.Time `json:"updatedAt"`
}
func (Datum) IsNode() {}
func (this Datum) GetID() gid.GID { return this.ID }
func (Datum) IsNode() {}
func (d Datum) GetID() gid.GID { return d.ID }
type (
DatumOrderBy OrderBy[coredata.DatumOrderField]

View File

@@ -44,8 +44,8 @@ type (
}
)
func (SignableDocument) IsNode() {}
func (this SignableDocument) GetID() gid.GID { return this.ID }
func (SignableDocument) IsNode() {}
func (d SignableDocument) GetID() gid.GID { return d.ID }
func NewSignableDocumentConnection(
p *page.Page[*SignableDocument, coredata.DocumentOrderField],

View File

@@ -2612,7 +2612,7 @@ func (r *mutationResolver) ExportFramework(ctx context.Context, input types.Expo
prb := r.ProboService(ctx, input.FrameworkID.TenantID())
identity := authn.IdentityFromContext(ctx)
exportErr, exportJobID := prb.Frameworks.RequestExport(
exportJob, exportErr := prb.Frameworks.RequestExport(
ctx,
input.FrameworkID,
identity.EmailAddress,
@@ -2624,7 +2624,7 @@ func (r *mutationResolver) ExportFramework(ctx context.Context, input types.Expo
}
return &types.ExportFrameworkPayload{
ExportJobID: exportJobID.ID,
ExportJobID: exportJob.ID,
}, nil
}