Other(refactor): Remove always-nil return value of (*Bridge).Close

This commit is contained in:
James Houlahan
2022-10-26 23:09:05 +02:00
parent 2bda47fcad
commit 8749d5dc7d
5 changed files with 9 additions and 15 deletions

View File

@ -106,10 +106,12 @@ func (t *testCtx) startBridge() error {
}
func (t *testCtx) stopBridge() error {
if err := t.bridge.Close(context.Background()); err != nil {
return err
if t.bridge == nil {
return fmt.Errorf("bridge is not running")
}
t.bridge.Close(context.Background())
t.bridge = nil
return nil