Skip to content

Commit 5422839

Browse files
authored
fix: remove duplicate error checking in UpdateAccountPermission (#161)
Remove redundant error checking block in pkg/client/account.go that was duplicated at lines 452-454. Fixes #160
1 parent fff6a96 commit 5422839

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/client/account.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,6 @@ func (g *GrpcClient) UpdateAccountPermission(from string, owner, witness map[str
449449
if err != nil {
450450
return nil, err
451451
}
452-
if err != nil {
453-
return nil, err
454-
}
455452
contract.Witness = witnessPermission
456453
}
457454

0 commit comments

Comments
 (0)