mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
Other(refactor): Remove always-nil return value of (*Bridge).Close
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user