Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/store/postgres/audit_record_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (r AuditRecordRepository) executeCursorQuery(ctx context.Context, selectQue
if err != nil {
return fmt.Errorf("failed to begin transaction: %w", err)
}
defer tx.Rollback()
defer tx.Rollback() // nolint

// Generate unique cursor name
cursorName, err := r.generateCursorName()
Expand Down
6 changes: 3 additions & 3 deletions internal/store/spicedb/relation_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (r *RelationRepository) Add(ctx context.Context, rel relation.Relation) err
Operation: "Upsert_Relation",
StartTime: nrCtx.StartSegmentNow(),
}
defer nr.End()
defer nr.End() // nolint
}

resp, err := r.spiceDB.client.WriteRelationships(ctx, request)
Expand Down Expand Up @@ -132,7 +132,7 @@ func (r *RelationRepository) Check(ctx context.Context, rel relation.Relation) (
Operation: "Check",
StartTime: nrCtx.StartSegmentNow(),
}
defer nr.End()
defer nr.End() // nolint
}

response, err := r.spiceDB.client.CheckPermission(ctx, request)
Expand Down Expand Up @@ -179,7 +179,7 @@ func (r *RelationRepository) Delete(ctx context.Context, rel relation.Relation)
Operation: "Delete_Relation",
StartTime: nrCtx.StartSegmentNow(),
}
defer nr.End()
defer nr.End() // nolint
}
resp, err := r.spiceDB.client.DeleteRelationships(ctx, request)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func ServeUI(ctx context.Context, logger *slog.Logger, uiConfig UIConfig, apiSer
},
Terminology: uiConfig.Terminology,
}
json.NewEncoder(w).Encode(confResp)
_ = json.NewEncoder(w).Encode(confResp)
})

mux.HandleFunc("/frontier-connect/", connectProxyHandler(connectProxy))
Expand Down Expand Up @@ -216,7 +216,7 @@ func ServeConnect(ctx context.Context, logger *slog.Logger, cfg Config, deps api
mux.HandleFunc("/ping", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
json.NewEncoder(w).Encode(map[string]string{"status": "SERVING"})
_ = json.NewEncoder(w).Encode(map[string]string{"status": "SERVING"})
})

// Configure and create the server
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/testbench/testbench.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func Init(appConfig *config.Frontier) (*TestBench, error) {
func (te *TestBench) Close() error {
proc, err := os.FindProcess(os.Getpid())
if err == nil {
proc.Signal(os.Interrupt)
_ = proc.Signal(os.Interrupt)
}
return errors.Join(err, te.close())
}
Loading