mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2026-02-10 19:18:34 +00:00
refactor: tidy a bit
This commit is contained in:
@ -14,7 +14,7 @@ type Part struct {
|
||||
children Parts
|
||||
}
|
||||
|
||||
func (p *Part) Part(n int) (part *Part, err error) {
|
||||
func (p *Part) Child(n int) (part *Part, err error) {
|
||||
if len(p.children) < n {
|
||||
return nil, errors.New("no such part")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user