We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d7f3a2 commit 9fae0b2Copy full SHA for 9fae0b2
bind/utils.go
@@ -198,12 +198,8 @@ else:
198
fmt.Printf("no LibPy -- set to: %s\n", raw.LibPy)
199
}
200
201
- if strings.HasSuffix(raw.LibPy, ".a") {
202
- raw.LibPy = raw.LibPy[:len(raw.LibPy)-len(".a")]
203
- }
204
- if strings.HasPrefix(raw.LibPy, "lib") {
205
- raw.LibPy = raw.LibPy[len("lib"):]
206
+ raw.LibPy = strings.TrimSuffix(raw.LibPy, ".a")
+ raw.LibPy = strings.TrimPrefix(raw.LibPy, "lib")
207
208
cfg.Version = raw.Version
209
cfg.ExtSuffix = raw.ExtSuffix
0 commit comments