mirror of
https://github.com/harness/drone.git
synced 2025-05-05 04:30:50 +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) {
|
func ParseType(profilerType string) (Type, bool) {
|
||||||
switch strings.TrimSpace(strings.ToLower(profilerType)) {
|
switch strings.ToLower(strings.TrimSpace(profilerType)) {
|
||||||
case string(TypeGCP):
|
case string(TypeGCP):
|
||||||
return TypeGCP, true
|
return TypeGCP, true
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user