cortezaproject / corteza

Low-code platform
https://cortezaproject.org
Apache License 2.0
1.65k stars 375 forks source link

Dividing variable by itself in loop_handler.go #2026

Open McLaynV opened 2 weeks ago

McLaynV commented 2 weeks ago

Is there an existing issue for this?

Version of Corteza

2024.9.x branch

Current Behavior

In server/automation/automation/loop_handler.go there is:

if args.First*(args.Step/args.Step) >= args.Last*(args.Step/args.Step)

Expected Behavior

I believe it is no intended to compute args.Step/args.Step. If it is intended, there should be a comment explaining what magic is going on.

Steps To Reproduce

No response

Environment and versions

No response

Anything else?

@darh