Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: David Bloss <[email protected]>
  • Loading branch information
2 people authored and Taimoor Ahmad committed Nov 28, 2023
1 parent 0632161 commit ef16b57
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions property.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ func (client *Client) GetPropertyDefinition(input string) (*PropertyDefinition,
Definition PropertyDefinition `graphql:"propertyDefinition(input: $input)"`
}
}
identifier := *NewIdentifier(input)
v := PayloadVariables{
"input": identifier,
"input": *NewIdentifier(input),
}
err := client.Query(&q, v, WithName("PropertyDefinitionGet"))
if q.Account.Definition.Id == "" {
Expand Down Expand Up @@ -84,9 +83,8 @@ func (client *Client) DeletePropertyDefinition(input string) error {
Errors []OpsLevelErrors `graphql:"errors"`
} `graphql:"propertyDefinitionDelete(resource: $input)"`
}
identifier := *NewIdentifier(input)
v := PayloadVariables{
"input": identifier,
"input": *NewIdentifier(input),
}
err := client.Mutate(&m, v, WithName("PropertyDefinitionDelete"))
return HandleErrors(err, m.Payload.Errors)
Expand Down

0 comments on commit ef16b57

Please sign in to comment.