there is no need to nil the app.settings on ResetBootstrapState

This commit is contained in:
Gani Georgiev 2023-09-01 12:56:49 +03:00
parent 58401459bf
commit 78e70bd52b
2 changed files with 0 additions and 5 deletions

View File

@ -375,7 +375,6 @@ func (app *BaseApp) ResetBootstrapState() error {
app.dao = nil app.dao = nil
app.logsDao = nil app.logsDao = nil
app.settings = nil
return nil return nil
} }

View File

@ -118,10 +118,6 @@ func TestBaseAppBootstrap(t *testing.T) {
if app.logsDao != nil { if app.logsDao != nil {
t.Fatalf("Expected app.logsDao to be nil, got %v.", app.logsDao) t.Fatalf("Expected app.logsDao to be nil, got %v.", app.logsDao)
} }
if app.settings != nil {
t.Fatalf("Expected app.settings to be nil, got %v.", app.settings)
}
} }
func TestBaseAppGetters(t *testing.T) { func TestBaseAppGetters(t *testing.T) {