You've already forked pocketbase
mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-07-16 18:54:22 +02:00
there is no need to nil the app.settings on ResetBootstrapState
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
||||||
|
Reference in New Issue
Block a user