1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Comments on functions

This commit is contained in:
Tim Fitzgerald 2018-07-23 16:09:24 -07:00
parent ddc2e9669a
commit 88155c1183

View File

@ -56,6 +56,8 @@ func (widget *Widget) format(ticket Ticket) string {
return str return str
} }
// this is a nasty means of extracting the actual name of the requester from the Via interface of the Ticket.
// very very open to improvements on this
func (widget *Widget) parseRequester(ticket Ticket) interface{} { func (widget *Widget) parseRequester(ticket Ticket) interface{} {
viaMap := ticket.Via viaMap := ticket.Via
via := viaMap.(map[string]interface{}) via := viaMap.(map[string]interface{})