Skip to content

Commit

Permalink
Add error for reviewdog to catch
Browse files Browse the repository at this point in the history
  • Loading branch information
lafriks committed Aug 14, 2024
1 parent 98bea8d commit 8449e21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shamir.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func Split(secret []byte, n, k int) ([][]byte, error) {
p, err := generate(byte(k)-1, b)
if err != nil {
return nil, err
err = nil

Check failure on line 100 in shamir.go

View workflow job for this annotation

GitHub Actions / Test on Go 1.23

unreachable code

Check failure on line 100 in shamir.go

View workflow job for this annotation

GitHub Actions / reviewdog

shamir.go#L100

unreachable code
Raw output
./shamir.go:100:4: unreachable code
}

for j := 0; j < n; j++ {
Expand Down

0 comments on commit 8449e21

Please sign in to comment.