From 7fe464e1d9d8973466cc1b26817162e682f20a16 Mon Sep 17 00:00:00 2001 From: Kyle Rockman Date: Tue, 28 Jan 2025 19:47:37 -0600 Subject: [PATCH] lint fixes --- enum.go | 12 +++--------- team.go | 2 +- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/enum.go b/enum.go index b551e37e..2995ce86 100644 --- a/enum.go +++ b/enum.go @@ -570,9 +570,7 @@ var AllFrequencyTimeScale = []string{ // HasDocumentationSubtypeEnum The subtype of the document type HasDocumentationSubtypeEnum string -var ( - HasDocumentationSubtypeEnumOpenapi HasDocumentationSubtypeEnum = "openapi" // Document is an OpenAPI document -) +var HasDocumentationSubtypeEnumOpenapi HasDocumentationSubtypeEnum = "openapi" // Document is an OpenAPI document // All HasDocumentationSubtypeEnum as []string var AllHasDocumentationSubtypeEnum = []string{ @@ -686,9 +684,7 @@ var AllPackageManagerEnum = []string{ // PayloadFilterEnum Fields that can be used as part of filters for payloads type PayloadFilterEnum string -var ( - PayloadFilterEnumIntegrationID PayloadFilterEnum = "integration_id" // Filter by `integration` field. Note that this is an internal id, ex. "123" -) +var PayloadFilterEnumIntegrationID PayloadFilterEnum = "integration_id" // Filter by `integration` field. Note that this is an internal id, ex. "123" // All PayloadFilterEnum as []string var AllPayloadFilterEnum = []string{ @@ -1190,9 +1186,7 @@ var AllUsersFilterEnum = []string{ // UsersInviteScopeEnum A classification of users to invite type UsersInviteScopeEnum string -var ( - UsersInviteScopeEnumPending UsersInviteScopeEnum = "pending" // All users who have yet to log in to OpsLevel for the first time -) +var UsersInviteScopeEnumPending UsersInviteScopeEnum = "pending" // All users who have yet to log in to OpsLevel for the first time // All UsersInviteScopeEnum as []string var AllUsersInviteScopeEnum = []string{ diff --git a/team.go b/team.go index c04cd41d..582c8db1 100644 --- a/team.go +++ b/team.go @@ -469,7 +469,7 @@ func (client *Client) DeleteTeam(identifier string) error { func (client *Client) RemoveMemberships(team *TeamId, memberships ...TeamMembershipUserInput) ([]User, error) { var m struct { - Payload struct { //TODO: need to fix this + Payload struct { // TODO: need to fix this Members []User `graphql:"deletedMembers"` Errors []Error } `graphql:"teamMembershipDelete(input: $input)"`