Skip to content

Commit

Permalink
detectors/gcp: remove CloudRunJobs constant
Browse files Browse the repository at this point in the history
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
  • Loading branch information
zchee committed Jul 29, 2022
1 parent 69870af commit 8db87c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions detectors/gcp/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const (
GKE
GCE
CloudRun
CloudRunJobs
CloudFunctions
AppEngineStandard
AppEngineFlex
Expand All @@ -50,7 +49,7 @@ func (d *Detector) CloudPlatform() Platform {
case d.onCloudRun():
return CloudRun
case d.onCloudRunJobs():
return CloudRunJobs
return CloudRun
case d.onCloudFunctions():
return CloudFunctions
case d.onAppEngineStandard():
Expand Down
2 changes: 1 addition & 1 deletion detectors/gcp/detector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func TestCloudPlatformCloudRunJobs(t *testing.T) {
},
})
platform := d.CloudPlatform()
assert.Equal(t, platform, CloudRunJobs)
assert.Equal(t, platform, CloudRun)
}

func TestCloudPlatformCloudFunctions(t *testing.T) {
Expand Down

0 comments on commit 8db87c0

Please sign in to comment.