mirror of https://github.com/harness/drone.git
change order of TrimSpace and ToLower for minor perf improvement
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