Skip to content

Commit

Permalink
static analysis changes (#273)
Browse files Browse the repository at this point in the history
Co-authored-by: forcodedancing <[email protected]>
  • Loading branch information
forcodedancing and forcodedancing authored Apr 20, 2022
1 parent be6f1ac commit 19058de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ func (app *BaseApp) initFromStore(mainKey sdk.StoreKey) error {
blockDB.Close()
}

//TODO(#118): figure out what does this mean! If we keep this, we will get panic: Router() on sealed BaseApp at github.com/BiJie/BinanceChain/app.(*BinanceChain).GetRouter(0xc0004bc080, 0xc000c14000, 0xc0007b9808)
// /Users/zhaocong/go/src/github.com/BiJie/BinanceChain/app/app.go:297 +0x6b
//app.Seal()

return nil
Expand Down
2 changes: 1 addition & 1 deletion server/constructors.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func openTraceWriter(traceWriterFile string) (w io.Writer, err error) {
w, err = os.OpenFile(
traceWriterFile,
os.O_WRONLY|os.O_APPEND|os.O_CREATE,
0666,
0600,
)
return
}
Expand Down

0 comments on commit 19058de

Please sign in to comment.