Skip to content

Commit c200054

Browse files
committed
Fix return order
1 parent fe89827 commit c200054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/conditioner/conditioner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func (c *Conditioner) handleRemediation(ctx context.Context, req *iotv1proto.Eve
285285
}
286286

287287
// getSceneState determines the scene and state to set based on the received event request and remediation.
288-
func (c *Conditioner) getSceneState(ctx context.Context, req *iotv1proto.EventRequest, rem apiv1.Remediation) (state, scene string) {
288+
func (c *Conditioner) getSceneState(ctx context.Context, req *iotv1proto.EventRequest, rem apiv1.Remediation) (scene, state string) {
289289
_, span := c.tracer.Start(ctx, "Conditioner.runTimer")
290290
defer span.End()
291291

@@ -328,7 +328,7 @@ func (c *Conditioner) getSceneState(ctx context.Context, req *iotv1proto.EventRe
328328
}
329329
}
330330

331-
return state, scene
331+
return scene, state
332332
}
333333

334334
func (c *Conditioner) withinActiveWindow(ctx context.Context, req *iotv1proto.EventRequest, rem apiv1.Remediation) (active bool) {

0 commit comments

Comments
 (0)