Skip to content

Commit 71f6f61

Browse files
committed
Appease linter gods
1 parent f465c15 commit 71f6f61

File tree

2 files changed

+10
-21
lines changed

2 files changed

+10
-21
lines changed

coderd/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func (api *api) users(rw http.ResponseWriter, r *http.Request) {
180180
}
181181

182182
// The default for empty string is 0.
183-
offset, err := strconv.Atoi(offsetArg)
183+
offset, err := strconv.ParseInt(offsetArg, 10, 64)
184184
if offsetArg != "" && err != nil {
185185
httpapi.Write(rw, http.StatusBadRequest, httpapi.Response{
186186
Message: fmt.Sprintf("offset must be an integer: %s", err.Error()),

site/src/api/typesGenerated.ts

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -77,68 +77,57 @@ export interface UsersRequest {
7777
readonly offset: int
7878
}
7979

80-
// From codersdk/users.go:31:6.
81-
export interface PagerFields {
82-
readonly limit: int
83-
readonly offset: int
84-
}
85-
86-
// From codersdk/users.go:36:6.
87-
export interface PaginatedUsers {
88-
readonly pager: PagerFields
89-
}
90-
91-
// From codersdk/users.go:42:6.
80+
// From codersdk/users.go:32:6.
9281
export interface User {
9382
readonly email: string
9483
readonly username: string
9584
readonly name: string
9685
}
9786

98-
// From codersdk/users.go:50:6.
87+
// From codersdk/users.go:40:6.
9988
export interface CreateFirstUserRequest {
10089
readonly email: string
10190
readonly username: string
10291
readonly password: string
10392
readonly organization: string
10493
}
10594

106-
// From codersdk/users.go:63:6.
95+
// From codersdk/users.go:53:6.
10796
export interface CreateUserRequest {
10897
readonly email: string
10998
readonly username: string
11099
readonly password: string
111100
}
112101

113-
// From codersdk/users.go:70:6.
102+
// From codersdk/users.go:60:6.
114103
export interface UpdateUserProfileRequest {
115104
readonly email: string
116105
readonly username: string
117106
readonly name?: string
118107
}
119108

120-
// From codersdk/users.go:77:6.
109+
// From codersdk/users.go:67:6.
121110
export interface LoginWithPasswordRequest {
122111
readonly email: string
123112
readonly password: string
124113
}
125114

126-
// From codersdk/users.go:83:6.
115+
// From codersdk/users.go:73:6.
127116
export interface LoginWithPasswordResponse {
128117
readonly session_token: string
129118
}
130119

131-
// From codersdk/users.go:88:6.
120+
// From codersdk/users.go:78:6.
132121
export interface GenerateAPIKeyResponse {
133122
readonly key: string
134123
}
135124

136-
// From codersdk/users.go:92:6.
125+
// From codersdk/users.go:82:6.
137126
export interface CreateOrganizationRequest {
138127
readonly name: string
139128
}
140129

141-
// From codersdk/users.go:97:6.
130+
// From codersdk/users.go:87:6.
142131
export interface CreateWorkspaceRequest {
143132
readonly name: string
144133
}

0 commit comments

Comments
 (0)