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

@ -460,7 +460,7 @@ func withBridge(
require.NoError(t, bridge.SetSMTPPort(0))
// Close the bridge when done.
defer func() { require.NoError(t, bridge.Close(ctx)) }()
defer bridge.Close(ctx)
// Use the bridge.
tests(bridge, mocks)