mirror of
https://github.com/mainnika/mongox-go-driver.git
synced 2026-05-22 15:53:36 +00:00
Use named returns for the code style consistency
This commit is contained in:
@@ -30,6 +30,6 @@ func NewEphemeral(URI string) (db *EphemeralDatabase, err error) {
|
||||
}
|
||||
|
||||
// Close the connection and drop database
|
||||
func (e *EphemeralDatabase) Close() error {
|
||||
func (e *EphemeralDatabase) Close() (err error) {
|
||||
return e.Client().Database(e.Name()).Drop(e.Context())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user