common/herrors: Fix args order in strings.TrimPrefix
authorIskander (Alex) Sharipov <quasilyte@gmail.com>
Sat, 2 Feb 2019 07:19:12 +0000 (10:19 +0300)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 2 Feb 2019 08:55:31 +0000 (09:55 +0100)
commit483cf19d5de05e8a83fd1be6934baa169c7fd7c8
tree2e648b483946af379c0bfeb9e611016743c289ad
parent7201042946dde78d5ea4fea9cb006fb4dded55c1
common/herrors: Fix args order in strings.TrimPrefix

Old code always returned "." or "" (if filepath.Ext(filename) returned ".").
Now it properly trims the prefix.

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
common/herrors/error_locator.go