Skip to content

Commit 55eca7e

Browse files
authored
Merge pull request #443 from stakater/lint-fix
Removed deprecated dependency and unnecessary condition
2 parents 010a423 + 1475797 commit 55eca7e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Check out code
2626
uses: actions/checkout@v3
2727
with:
28-
fetch-depth: 0
28+
ref: ${{github.event.pull_request.head.sha}}
2929

3030
- name: Set up Go
3131
uses: actions/setup-go@v3

pkg/monitors/gcloud/gcloud-monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
logf "sigs.k8s.io/controller-runtime/pkg/log"
1010

11-
monitoring "cloud.google.com/go/monitoring/apiv3"
11+
monitoring "cloud.google.com/go/monitoring/apiv3/v2"
1212
"google.golang.org/api/iterator"
1313
"google.golang.org/api/option"
1414
monitoredres "google.golang.org/genproto/googleapis/api/monitoredres"

pkg/monitors/statuscake/statuscake-monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ func (service *StatusCakeMonitorService) GetByID(id string) (*models.Monitor, er
286286
func (service *StatusCakeMonitorService) GetAll() []models.Monitor {
287287
var StatusCakeMonitorData []StatusCakeMonitorData
288288
page := 1
289-
for true {
289+
for {
290290
res := service.fetchMonitors(page)
291291
StatusCakeMonitorData = append(StatusCakeMonitorData, res.StatusCakeData...)
292292
if page >= res.StatusCakeMetadata.PageCount {

0 commit comments

Comments
 (0)