Skip to content

Commit

Permalink
fix: process and remove notification(#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
TennousuAthena committed Aug 19, 2024
1 parent 0bdfc56 commit 795b320
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,11 @@ func LpacNotificationList() ([]*Notification, error) {
}

func LpacNotificationProcess(seq int, remove bool) error {
args := []string{"notification", "process", strconv.Itoa(seq)}
args := []string{"notification", "process"}
if remove {
args = append(args, "-r")
}
args = append(args, strconv.Itoa(seq))
_, err := runLpac(args...)
if err != nil {
return err
Expand Down

0 comments on commit 795b320

Please sign in to comment.