Skip to content

Commit 26c69f8

Browse files
committed
staticcheck: fix S1005: unnecessary assignment to the blank identifier
Signed-off-by: Sumner Evans <[email protected]>
1 parent 959eb7e commit 26c69f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

provisioning.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func (prov *ProvisioningAPI) resolveIdentifier(ctx context.Context, user *User,
180180

181181
func (prov *ProvisioningAPI) ResolveIdentifier(w http.ResponseWriter, r *http.Request) {
182182
user := r.Context().Value(provisioningUserKey).(*User)
183-
phoneNum, _ := mux.Vars(r)["phonenum"]
183+
phoneNum := mux.Vars(r)["phonenum"]
184184

185185
log := prov.log.With().
186186
Str("action", "resolve_identifier").
@@ -215,7 +215,7 @@ func (prov *ProvisioningAPI) ResolveIdentifier(w http.ResponseWriter, r *http.Re
215215

216216
func (prov *ProvisioningAPI) StartPM(w http.ResponseWriter, r *http.Request) {
217217
user := r.Context().Value(provisioningUserKey).(*User)
218-
phoneNum, _ := mux.Vars(r)["phonenum"]
218+
phoneNum := mux.Vars(r)["phonenum"]
219219

220220
log := prov.log.With().
221221
Str("action", "start_pm").

0 commit comments

Comments
 (0)