diff --git a/context.go b/context.go index de92eb78..80a6bd7d 100644 --- a/context.go +++ b/context.go @@ -175,7 +175,7 @@ func GetCurrentContainerID() string { strLines := string(lines) if id := matchDockerCurrentContainerID(strLines); id != "" { return id - } else if matchECSCurrentContainerID(strLines); id != "" { + } else if id := matchECSCurrentContainerID(strLines); id != "" { return id } }