Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
This commit was moved from ipld/go-car@5bff03e
  • Loading branch information
rvagg committed Jun 3, 2021
1 parent 6edffc7 commit 873f8f2
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions ipld/car/car/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,11 @@ var verifyCmd = cli.Command{

for {
_, err := cr.Next()
switch err {
case io.EOF:
if err == io.EOF {
return nil
default:
}
if err != nil {
return err
case nil:
}
}
},
Expand All @@ -93,12 +92,11 @@ var lsCmd = cli.Command{

for {
blk, err := cr.Next()
switch err {
case io.EOF:
if err == io.EOF {
return nil
default:
}
if err != nil {
return err
case nil:
}
fmt.Println(blk.Cid())
}
Expand All @@ -112,5 +110,5 @@ func main() {
lsCmd,
verifyCmd,
}
app.RunAndExitOnError()
app.Run(os.Args)
}

0 comments on commit 873f8f2

Please sign in to comment.