Skip to content

Commit

Permalink
Merge pull request #227 from civo/fix-lint
Browse files Browse the repository at this point in the history
lint fix
  • Loading branch information
uzaxirr authored Dec 19, 2024
2 parents 5dd589f + bfe4a84 commit 01d984c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,7 @@ func (c *Client) DeleteFirewallRule(id string, ruleID string) (*SimpleResponse,
return c.DecodeSimpleResponse(resp)
}



// Check if the firewall is using the default rules
// IsUsingDefaultRules checks if the firewall is using the default rules
func (c *Client) IsUsingDefaultRules(firewallID string) (bool, error) {
// Define default firewall rules
var defaultRules = []FirewallRule{
Expand Down Expand Up @@ -272,4 +270,3 @@ func areDefaultRules(rules []FirewallRule, defaultRules []FirewallRule) bool {

return true
}

0 comments on commit 01d984c

Please sign in to comment.