Skip to content

Commit

Permalink
Comments on functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Fitzgerald committed Jul 23, 2018
1 parent ddc2e96 commit 88155c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zendesk/widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func (widget *Widget) format(ticket Ticket) string {
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{} {
viaMap := ticket.Via
via := viaMap.(map[string]interface{})
Expand Down

0 comments on commit 88155c1

Please sign in to comment.