Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/ui: simplify SanitizePrefix func (#2733)
This commit simplifies the SanitizePrefix func to remove an unecessary call to `strings.HasSuffix`. The `strings.TrimSuffix` func internally calls `strings.HasSuffix`, so there is an unneeded, extra call. Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
- Loading branch information