Remove unncessary recover() calls (#14066)
* Remove unncessary recover() calls A recover which is not called inside a defer will always return nil. So there's no use of calling it. And even if we did call it inside a defer, recovering and immediately panicking does not make sense either. So we just remove it. * Fixed another instance
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9369d65441
Коммит
42081a1441
@@ -567,9 +567,6 @@ func (me *TestHelper) TearDown() {
|
||||
me.App.InvalidateAllCaches()
|
||||
}
|
||||
me.ShutdownApp()
|
||||
if err := recover(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if me.tempWorkspace != "" {
|
||||
os.RemoveAll(me.tempWorkspace)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user