Skip to content

Commit

Permalink
code ql
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Feb 16, 2024
1 parent 1a0ec34 commit 2461cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,10 +608,10 @@ func startApp[T types.Application](svrCtx *Context, appCreator types.AppCreator[
if isTestnet, ok := svrCtx.Viper.Get(KeyIsTestnet).(bool); ok && isTestnet {
var appPtr *T
appPtr, err = testnetify[T](svrCtx, home, appCreator, db, traceWriter)
app = *appPtr
if err != nil {
return app, traceCleanupFn, err
}
app = *appPtr
} else {
app = appCreator(svrCtx.Logger, db, traceWriter, svrCtx.Viper)
}
Expand Down

0 comments on commit 2461cff

Please sign in to comment.