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
Этот коммит содержится в:
Agniva De Sarker
2020-03-17 16:34:39 +05:30
коммит произвёл GitHub
родитель 9369d65441
Коммит 42081a1441
4 изменённых файлов: 0 добавлений и 13 удалений

Просмотреть файл

@@ -246,10 +246,6 @@ func (me *TestHelper) TearDown() {
me.ShutdownApp()
utils.EnableDebugLogForTest()
if err := recover(); err != nil {
panic(err)
}
}
var initBasicOnce sync.Once