Skip to content

Commit 93ffe46

Browse files
chore: fix lint
1 parent 5b52d79 commit 93ffe46

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

cmd/cronjobs/cronjobs_create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Examples:
137137
}
138138
}
139139

140-
settings := api.HttpCronjobSettings{
140+
settings := api.HTTPCronjobSettings{
141141
Path: path,
142142
Method: method,
143143
}

cmd/cronjobs/cronjobs_update.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Examples:
5252
method := c.String("method")
5353

5454
// Decode existing settings for defaults in both TTY and non-TTY.
55-
var currentSettings api.HttpCronjobSettings
55+
var currentSettings api.HTTPCronjobSettings
5656
if existing.Settings != nil {
5757
_ = json.Unmarshal(*existing.Settings, &currentSettings)
5858
}
@@ -121,7 +121,7 @@ Examples:
121121
}
122122
}
123123

124-
settings := api.HttpCronjobSettings{
124+
settings := api.HTTPCronjobSettings{
125125
Path: path,
126126
Method: method,
127127
}

internal/api/cronjobs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ type CreateCronjobRequest struct {
4444
Settings json.RawMessage `json:"settings,omitempty"`
4545
}
4646

47-
// HttpCronjobSettings holds the settings for an HTTP-type cron job.
48-
type HttpCronjobSettings struct {
47+
// HTTPCronjobSettings holds the settings for an HTTP-type cron job.
48+
type HTTPCronjobSettings struct {
4949
Path string `json:"path"`
5050
Method string `json:"method"`
5151
Headers map[string]string `json:"headers,omitempty"`

0 commit comments

Comments
 (0)