Browse Source
Replace strings.HasPrefix checks with strings.CutPrefix for more idiomatic Go code. This function is available in Go 1.20+ and provides cleaner conditional logic with the combined check and extraction. Addresses review feedback from Gemini Code Assist.pull/7409/head
1 changed files with 4 additions and 4 deletions
Loading…
Reference in new issue