Go

Go

Made by DeepSource

Found x.Sub(time.Now()) instead of time.Until(x) SCC-S1024

Anti-pattern
Major
Autofix

The time.Until helper has the same effect as using x.Sub(time.Now()). The former is easier to read.

Bad practice

x.Sub(time.Now())

Recommended

time.Until(x)