v1.0.0: lint: fix lint error
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
1e31a6f80e
commit
51e4cb9027
3 changed files with 6 additions and 4 deletions
|
|
@ -51,7 +51,9 @@ func CreateLogin(db *sql.DB, request RequestLogin) (ResponseLogin, error) {
|
|||
}
|
||||
|
||||
builder := biscuit.NewBuilder(lib.PrivateKey)
|
||||
builder.AddBlock(authority)
|
||||
if err = builder.AddBlock(authority); err != nil {
|
||||
return response, err
|
||||
}
|
||||
|
||||
b, err := builder.Build()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue