Skip to content

Commit

Permalink
Rename NotificationIcon => Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
crdx committed Jan 12, 2023
1 parent 5976331 commit b709c58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/notify/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"github.com/crdx/mission/util"
)

type NotificationIcon = string
type Icon = string

const (
IconInfo NotificationIcon = "dialog-information"
IconError NotificationIcon = "dialog-error"
IconInfo Icon = "dialog-information"
IconError Icon = "dialog-error"
)

func Start(userName string) error {
Expand All @@ -31,7 +31,7 @@ func Fail(userName string, completedIn time.Duration) error {

// —————————————————————————————————————————————————————————————————————————————————————————————————

func notify(icon NotificationIcon, message string, userName string) error {
func notify(icon Icon, message string, userName string) error {
userInfo, err := util.GetUserInfo(userName)
if err != nil {
return err
Expand Down

0 comments on commit b709c58

Please sign in to comment.