Skip to content

Commit 3d8fb74

Browse files
authored
fix: use a more straightforward return value (#4136)
Signed-off-by: looklose <[email protected]>
1 parent fe49c4a commit 3d8fb74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/shwap/share.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func ShareFromProto(s *pb.Share) (libshare.Share, error) {
1919
if err != nil {
2020
return libshare.Share{}, err
2121
}
22-
return *sh, err
22+
return *sh, nil
2323
}
2424

2525
// SharesToProto converts a slice of Shares from the application's internal representation to a

0 commit comments

Comments
 (0)