Skip to content

Commit

Permalink
staticcheck: fix S1005: unnecessary assignment to the blank identifier
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <me@sumnerevans.com>
  • Loading branch information
sumnerevans committed Jan 8, 2024
1 parent 959eb7e commit 26c69f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provisioning.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (prov *ProvisioningAPI) resolveIdentifier(ctx context.Context, user *User,

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

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

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

log := prov.log.With().
Str("action", "start_pm").
Expand Down

0 comments on commit 26c69f8

Please sign in to comment.