Skip to content

Commit

Permalink
chore: run gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
synackd committed Dec 9, 2024
1 parent c753cd9 commit 7a417b2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions internal/client/cloud-init.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const (

// The different types of cloud-init data.
const (
CloudInitUserData CIDataType = "user-data"
CloudInitMetaData CIDataType = "meta-data"
CloudInitUserData CIDataType = "user-data"
CloudInitMetaData CIDataType = "meta-data"
CloudInitVendorData CIDataType = "vendor-data"
)

Expand Down Expand Up @@ -381,9 +381,9 @@ func (cic *CloudInitClient) DeleteConfigsSecure(token string, ids ...string) ([]
// separate error is also returned.
func (cic *CloudInitClient) GetCloudInitData(typ CIDataType, ids []string) ([]HTTPEnvelope, []error, error) {
var (
headers = NewHTTPHeaders()
henvs []HTTPEnvelope
errors []error
headers = NewHTTPHeaders()
henvs []HTTPEnvelope
errors []error
)
if len(ids) == 0 {
return henvs, errors, fmt.Errorf("GetCloudInitData(%s): no ids passed", typ)
Expand Down Expand Up @@ -415,9 +415,9 @@ func (cic *CloudInitClient) GetCloudInitData(typ CIDataType, ids []string) ([]HT
// secure cloud-init endpoint and requires a token.
func (cic *CloudInitClient) GetCloudInitDataSecure(typ CIDataType, ids []string, token string) ([]HTTPEnvelope, []error, error) {
var (
headers = NewHTTPHeaders()
henvs []HTTPEnvelope
errors []error
headers = NewHTTPHeaders()
henvs []HTTPEnvelope
errors []error
)
if len(ids) == 0 {
return henvs, errors, fmt.Errorf("GetCloudInitDataSecure(%s): no ids passed", typ)
Expand Down

0 comments on commit 7a417b2

Please sign in to comment.