Skip to content

Commit

Permalink
cmd: delete unnecessary open file
Browse files Browse the repository at this point in the history
  • Loading branch information
wdvxdr1123 committed Feb 15, 2022
1 parent ab3d655 commit 812cabf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ func Main() {
v2db, err := leveldb.OpenFile(*v2, nil)
handle(err)
defer v2db.Close()
{
v3db, err := leveldb.OpenFile(*v3, nil)
handle(err)
_ = v3db.Close()
}
v3db, err := leveldb.OpenFile(*v3, nil)
handle(err)

Expand Down

0 comments on commit 812cabf

Please sign in to comment.