refactor: use a more straightforward return value
Signed-off-by: beforetech <mail@before.tech>
This commit is contained in:
parent
022b9b22cf
commit
f954f76012
@ -134,7 +134,7 @@ func (kv *kv) Compact(ctx context.Context, rev int64, opts ...CompactOption) (*C
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, ContextError(ctx, err)
|
return nil, ContextError(ctx, err)
|
||||||
}
|
}
|
||||||
return (*CompactResponse)(resp), err
|
return (*CompactResponse)(resp), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (kv *kv) Txn(ctx context.Context) Txn {
|
func (kv *kv) Txn(ctx context.Context) Txn {
|
||||||
|
@ -121,7 +121,7 @@ func (t *tokenJWT) assign(ctx context.Context, username string, revision uint64)
|
|||||||
zap.Uint64("revision", revision),
|
zap.Uint64("revision", revision),
|
||||||
zap.String("token", token),
|
zap.String("token", token),
|
||||||
)
|
)
|
||||||
return token, err
|
return token, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func newTokenProviderJWT(lg *zap.Logger, optMap map[string]string) (*tokenJWT, error) {
|
func newTokenProviderJWT(lg *zap.Logger, optMap map[string]string) (*tokenJWT, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user