Skip to content

Commit

Permalink
add code comment on Members.getAliases
Browse files Browse the repository at this point in the history
Co-authored-by: Henry <[email protected]>
  • Loading branch information
staltz and cryptix authored Apr 8, 2021
1 parent 822e43e commit 69ee252
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roomdb/sqlite/members.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ type Members struct {
db *sql.DB
}

func (m Members) getAliases(mEntry *models.Member) []roomdb.Alias {
// getAliases returns the JOIN-ed aliases for a member as a the wanted roomdb type.
func (Members) getAliases(mEntry *models.Member) []roomdb.Alias {
if mEntry.R == nil || mEntry.R.Aliases == nil {
return make([]roomdb.Alias, 0)
}
Expand Down

0 comments on commit 69ee252

Please sign in to comment.