Skip to content

Commit e4f3567

Browse files
committed
run golangci-lint
Signed-off-by: Eliott Bouhana <[email protected]>
1 parent 429e2f8 commit e4f3567

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

openfeature/exposure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func (w *exposureWriter) flush() {
200200

201201
// Send to agent
202202
if err := w.sendToAgent(payload); err != nil {
203-
log.Error("openfeature: failed to send exposure events: %v", err)
203+
log.Error("openfeature: failed to send exposure events: %v", err.Error())
204204
} else {
205205
log.Debug("openfeature: successfully sent %d exposure events", len(events))
206206
}

openfeature/exposure_hook.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ func newExposureHook(writer *exposureWriter) *exposureHook {
3838
// It extracts the necessary information from the evaluation details and sends
3939
// an exposure event to the writer if doLog is true.
4040
func (h *exposureHook) After(
41-
ctx context.Context,
41+
_ context.Context,
4242
hookContext of.HookContext,
4343
flagEvaluationDetails of.InterfaceEvaluationDetails,
44-
hookHints of.HookHints,
44+
_ of.HookHints,
4545
) error {
4646
// Check if we should log this exposure
4747
if !h.shouldLog(flagEvaluationDetails.FlagMetadata) {
@@ -91,8 +91,8 @@ func (h *exposureHook) After(
9191
},
9292
Subject: exposureSubject{
9393
ID: targetingKey,
94-
Type: "", // Type is optional
95-
Attributes: subjectAttrs, // Flattened, primitive-only attributes
94+
Type: "", // Type is optional
95+
Attributes: subjectAttrs, // Flattened, primitive-only attributes
9696
},
9797
}
9898

0 commit comments

Comments
 (0)