From 69ee2529e2d775083d1e07272d2331dc5617819a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Staltz?= Date: Thu, 8 Apr 2021 14:42:44 +0300 Subject: [PATCH] add code comment on Members.getAliases Co-authored-by: Henry <111202+cryptix@users.noreply.github.com> --- roomdb/sqlite/members.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roomdb/sqlite/members.go b/roomdb/sqlite/members.go index f502a56c..0c42417f 100644 --- a/roomdb/sqlite/members.go +++ b/roomdb/sqlite/members.go @@ -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) }