From efc15c2db8f419c58c8dbfa4ff0b08c7322412f1 Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Thu, 29 Jun 2023 03:33:54 +0900 Subject: [PATCH] detectors/gcp: fix incorrect variable name (#642) Signed-off-by: Koichi Shiraishi --- detectors/gcp/faas.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/detectors/gcp/faas.go b/detectors/gcp/faas.go index 5e212e531..9277608dd 100644 --- a/detectors/gcp/faas.go +++ b/detectors/gcp/faas.go @@ -73,16 +73,16 @@ func (d *Detector) FaaSVersion() (string, error) { // CloudRunJobExecution returns the execution id of the Cloud Run jobs. func (d *Detector) CloudRunJobExecution() (string, error) { - if version, found := d.os.LookupEnv(cloudRunJobExecutionEnv); found { - return version, nil + if eid, found := d.os.LookupEnv(cloudRunJobExecutionEnv); found { + return eid, nil } return "", errEnvVarNotFound } // CloudRunJobTaskIndex returns the task index for the execution of the Cloud Run jobs. func (d *Detector) CloudRunJobTaskIndex() (string, error) { - if version, found := d.os.LookupEnv(cloudRunJobTaskIndexEnv); found { - return version, nil + if tidx, found := d.os.LookupEnv(cloudRunJobTaskIndexEnv); found { + return tidx, nil } return "", errEnvVarNotFound }