Fix broken lint on main. (#40147)

`make lint-go` was not flagging issues in CI.
This commit is contained in:
Victor Lyuboslavsky
2026-02-20 07:15:23 -06:00
committed by GitHub
parent 9b32946e4b
commit 9a25a2b43d
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ lint-js:
.help-short--lint-go:
@echo "Run the Go linters"
lint-go:
-golangci-lint run --timeout 15m
golangci-lint run --timeout 15m
ifndef SKIP_INCREMENTAL
$(MAKE) lint-go-incremental
endif
+1 -1
View File
@@ -569,7 +569,7 @@ func TestGetHosts(t *testing.T) {
part = "{" + part
}
if i < len(parts)-1 {
part = part + "}"
part += "}"
}
var obj map[string]any
require.NoError(t, json.Unmarshal([]byte(part), &obj))
+2
View File
@@ -1506,9 +1506,11 @@ func (a ActivityEditedSmallstep) ActivityName() string {
type ActivityTypeEnabledAndroidMDM struct{}
func (a ActivityTypeEnabledAndroidMDM) ActivityName() string { return "enabled_android_mdm" }
type ActivityTypeDisabledAndroidMDM struct{}
func (a ActivityTypeDisabledAndroidMDM) ActivityName() string { return "disabled_android_mdm" }
type ActivityTypeCanceledRunScript struct {
HostID uint `json:"host_id"`
HostDisplayName string `json:"host_display_name"`