Skip to content

Commit

Permalink
Fix unconvert
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Dec 18, 2019
1 parent f141f21 commit 2f8d1f8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ linters:
- unparam
- golint
- goconst
- unconvert
- bodyclose
- staticcheck
- nakedret
Expand Down
2 changes: 1 addition & 1 deletion connector/keystone/keystone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func TestUseRefreshToken(t *testing.T) {
delete(t, token, groupID, groupsURL)

expectEquals(t, 1, len(identityRefresh.Groups))
expectEquals(t, testGroup, string(identityRefresh.Groups[0]))
expectEquals(t, testGroup, identityRefresh.Groups[0])
}

func TestUseRefreshTokenUserDeleted(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion storage/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (c *conn) UpdateRefreshToken(id string, updater func(old storage.RefreshTok
return c.txnUpdate(ctx, keyID(refreshTokenPrefix, id), func(currentValue []byte) ([]byte, error) {
var current RefreshToken
if len(currentValue) > 0 {
if err := json.Unmarshal([]byte(currentValue), &current); err != nil {
if err := json.Unmarshal(currentValue, &current); err != nil {
return nil, err
}
}
Expand Down

0 comments on commit 2f8d1f8

Please sign in to comment.