1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-01-10 00:43:36 +02:00

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.logsDao = nil
app.settings = nil
return nil
}

View File

@ -118,10 +118,6 @@ func TestBaseAppBootstrap(t *testing.T) {
if app.logsDao != nil {
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) {