mirror of
https://github.com/harness/drone.git
synced 2025-05-04 23:40:24 +08:00
change order of TrimSpace and ToLower for minor perf improvement
This commit is contained in:
parent
59e3bff412
commit
bac1777e38
@ -20,7 +20,7 @@ const (
|
||||
)
|
||||
|
||||
func ParseType(profilerType string) (Type, bool) {
|
||||
switch strings.TrimSpace(strings.ToLower(profilerType)) {
|
||||
switch strings.ToLower(strings.TrimSpace(profilerType)) {
|
||||
case string(TypeGCP):
|
||||
return TypeGCP, true
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user