aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/hsu.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-18 17:35:20 +0900
committerOphestra <cat@gensokyo.uk>2025-10-18 17:35:20 +0900
commitf6f0cb56ae64a47dcb948134e19afbd241452fd9 (patch)
tree76514137d848cd0d1bcc49f7640a0cae72e91534 /internal/app/hsu.go
parentd4284c109d593fa1413a162734b3db5134c66d19 (diff)
internal/app/hsu: remove wrapper method
This was added to reduce the size of diffs. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/hsu.go')
-rw-r--r--internal/app/hsu.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/internal/app/hsu.go b/internal/app/hsu.go
index 9f0408ac..e53d9f3d 100644
--- a/internal/app/hsu.go
+++ b/internal/app/hsu.go
@@ -35,7 +35,8 @@ func (h *Hsu) ensureDispatcher() {
})
}
-// ID returns the current user hsurc identifier. ErrHsuAccess is returned if the current user is not in hsurc.
+// ID returns the current user hsurc identifier.
+// [ErrHsuAccess] is returned if the current user is not in hsurc.
func (h *Hsu) ID() (int, error) {
h.ensureDispatcher()
h.idOnce.Do(func() {
@@ -71,10 +72,7 @@ func (h *Hsu) ID() (int, error) {
}
// MustID calls [Hsu.ID] and terminates on error.
-func (h *Hsu) MustID() int { return h.MustIDMsg(nil) }
-
-// MustIDMsg implements MustID with a custom [container.Msg].
-func (h *Hsu) MustIDMsg(msg message.Msg) int {
+func (h *Hsu) MustID(msg message.Msg) int {
id, err := h.ID()
if err == nil {
return id