From 01604c06d2a52925488de56fc9085cf2e6ebfcea Mon Sep 17 00:00:00 2001 From: James Tucker Date: Wed, 1 Nov 2023 11:52:40 -0700 Subject: [PATCH] hostinfo: fix a couple of logic simplification lints Updates #cleanup Signed-off-by: James Tucker --- hostinfo/hostinfo.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/hostinfo/hostinfo.go b/hostinfo/hostinfo.go index 239cc796c..6fb1d231c 100644 --- a/hostinfo/hostinfo.go +++ b/hostinfo/hostinfo.go @@ -335,10 +335,7 @@ func inAzureAppService() bool { } func inAWSFargate() bool { - if os.Getenv("AWS_EXECUTION_ENV") == "AWS_ECS_FARGATE" { - return true - } - return false + return os.Getenv("AWS_EXECUTION_ENV") == "AWS_ECS_FARGATE" } func inFlyDotIo() bool { @@ -364,10 +361,7 @@ func inKubernetes() bool { } func inDockerDesktop() bool { - if os.Getenv("TS_HOST_ENV") == "dde" { - return true - } - return false + return os.Getenv("TS_HOST_ENV") == "dde" } func inHomeAssistantAddOn() bool {