Skip to content
Commit 497a0931 authored by Ulya Trafimovich's avatar Ulya Trafimovich
Browse files

Drop `strings.HasPrefix` when guarding `strings.TrimPrefix`.

There is no need to check as `TrimPrefix` does nothing if the prefix
doesn't match (see https://pkg.go.dev/strings#TrimPrefix).

Bug: 193425964
Test: m nothing
Change-Id: Ieb82e72a471800e29eb6bb54308041a9ab4173e5
parent 39924233
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment