strings.TrimSuffix() does exactly the same as this code, but is a bit more readable. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 4a52c46e37) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
4a52c46e37