Skip to content

Commit 535a80a

Browse files
committed
Formatting
1 parent fc4eadb commit 535a80a

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

codersdk/deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ type Entitlements struct {
103103
HasLicense bool `json:"has_license"`
104104
Trial bool `json:"trial"`
105105
RequireTelemetry bool `json:"require_telemetry"`
106-
RefreshedAt time.Time `json:"refreshed_at"`
106+
RefreshedAt time.Time `json:"refreshed_at"`
107107
}
108108

109109
func (c *Client) Entitlements(ctx context.Context) (Entitlements, error) {

enterprise/coderd/licenses.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,7 @@ func (api *API) postLicense(rw http.ResponseWriter, r *http.Request) {
166166
// @Success 201 {object} codersdk.Response
167167
// @Router /licenses/refresh-entitlements [post]
168168
func (api *API) postRefreshEntitlements(rw http.ResponseWriter, r *http.Request) {
169-
var (
170-
ctx = r.Context()
171-
)
169+
ctx := r.Context()
172170

173171
// If the user cannot create a new license, then they cannot refresh entitlements.
174172
// Refreshing entitlements is a way to force a refresh of the license, so it is

site/src/api/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ export const getEntitlements = async (): Promise<TypesGen.Entitlements> => {
825825
require_telemetry: false,
826826
trial: false,
827827
warnings: [],
828-
refreshed_at:"",
828+
refreshed_at: "",
829829
}
830830
}
831831
throw ex

site/src/testHelpers/entities.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ export const MockEntitlements: TypesGen.Entitlements = {
14501450
features: withDefaultFeatures({}),
14511451
require_telemetry: false,
14521452
trial: false,
1453-
refreshed_at:"2022-05-20T16:45:57.122Z",
1453+
refreshed_at: "2022-05-20T16:45:57.122Z",
14541454
}
14551455

14561456
export const MockEntitlementsWithWarnings: TypesGen.Entitlements = {
@@ -1459,7 +1459,7 @@ export const MockEntitlementsWithWarnings: TypesGen.Entitlements = {
14591459
has_license: true,
14601460
trial: false,
14611461
require_telemetry: false,
1462-
refreshed_at:"2022-05-20T16:45:57.122Z",
1462+
refreshed_at: "2022-05-20T16:45:57.122Z",
14631463
features: withDefaultFeatures({
14641464
user_limit: {
14651465
enabled: true,
@@ -1484,7 +1484,7 @@ export const MockEntitlementsWithAuditLog: TypesGen.Entitlements = {
14841484
has_license: true,
14851485
require_telemetry: false,
14861486
trial: false,
1487-
refreshed_at:"2022-05-20T16:45:57.122Z",
1487+
refreshed_at: "2022-05-20T16:45:57.122Z",
14881488
features: withDefaultFeatures({
14891489
audit_log: {
14901490
enabled: true,
@@ -1499,7 +1499,7 @@ export const MockEntitlementsWithScheduling: TypesGen.Entitlements = {
14991499
has_license: true,
15001500
require_telemetry: false,
15011501
trial: false,
1502-
refreshed_at:"2022-05-20T16:45:57.122Z",
1502+
refreshed_at: "2022-05-20T16:45:57.122Z",
15031503
features: withDefaultFeatures({
15041504
advanced_template_scheduling: {
15051505
enabled: true,

site/src/xServices/entitlements/entitlementsXService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ export const entitlementsMachine = createMachine(
5454
},
5555
idle: {
5656
on: {
57-
REFRESH: "refresh"
58-
}
57+
REFRESH: "refresh",
58+
},
5959
},
6060
success: {
6161
type: "final",
6262
},
6363
error: {
6464
on: {
65-
REFRESH: "refresh"
66-
}
65+
REFRESH: "refresh",
66+
},
6767
},
6868
},
6969
},

0 commit comments

Comments
 (0)