From bac1777e38e2d1ff01eaef247baf78e0a90bce1b Mon Sep 17 00:00:00 2001 From: Johannes Batzill Date: Mon, 26 Jun 2023 11:42:48 -0700 Subject: [PATCH] change order of TrimSpace and ToLower for minor perf improvement --- profiler/profiler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/profiler.go b/profiler/profiler.go index 1419db0ba..1ea545e75 100644 --- a/profiler/profiler.go +++ b/profiler/profiler.go @@ -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: