mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 11:05:45 +00:00
hostinfo: fix a couple of logic simplification lints
Updates #cleanup Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:
parent
37863205ec
commit
01604c06d2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user