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 }