Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libct/utils: stripRoot: rm useless HasPrefix
Using strings.HasPrefix with strings.TrimPrefix results in doing the same thing (checking if prefix exists) twice. In this case, using strings.TrimPrefix right away is sufficient. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
- Loading branch information