mirror of
https://github.com/mainnika/mongox-go-driver.git
synced 2026-07-24 01:58:47 +00:00
Use named returns for the code style consistency
This commit is contained in:
@@ -14,7 +14,7 @@ type Primary struct {
|
||||
}
|
||||
|
||||
// GetID returns an _id
|
||||
func (p *Primary) GetID() primitive.ObjectID {
|
||||
func (p *Primary) GetID() (id primitive.ObjectID) {
|
||||
return p.ID
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user