Skip to content

Commit

Permalink
Fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
simcod committed Oct 25, 2024
1 parent 9ab4b0c commit 6259c7a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cmd/partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,12 @@ func (c *partitionCmd) partitionCapacity() error {
}

func (c *partitionCmd) createRequestFromCLI() (*models.V1PartitionCreateRequest, error) {
pcr, err := partitionCreateRequest()
if err != nil {
return nil, fmt.Errorf("partition create error:%w", err)
}
pcr := partitionCreateRequest()

return pcr, nil
}

func partitionCreateRequest() (*models.V1PartitionCreateRequest, error) {
func partitionCreateRequest() *models.V1PartitionCreateRequest {
var (
dnsServers []*models.MetalDNSServer
ntpServers []*models.MetalNTPServer
Expand Down Expand Up @@ -219,5 +216,5 @@ func partitionCreateRequest() (*models.V1PartitionCreateRequest, error) {
NtpServers: ntpServers,
}

return pcr, nil
return pcr
}

0 comments on commit 6259c7a

Please sign in to comment.