Skip to content

Commit

Permalink
more consise error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Jul 26, 2023
1 parent 1deec50 commit 109bff6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/shares/share_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ func NewBuilder(ns appns.Namespace, shareVersion uint8, isFirstShare bool) (*Bui
isFirstShare: isFirstShare,
isCompactShare: isCompactShare(ns),
}
err := b.init()
if err != nil {
if err := b.init(); err != nil {
return nil, err
}
return &b, nil
Expand Down

0 comments on commit 109bff6

Please sign in to comment.