fix: issues affecting code quality
Created by: withshubh
Description
This PR fixes a few issues that were affecting the code quality.
Summary of changes
- Replace
t.Sub(time.Now())
withtime.Until
- Remove unnecessary wrapping of function call
- Remove unnecessary blank (_) identifier
- Fix check for empty string