Skip to content

Commit

Permalink
fix:[#146] task remove file name with slug
Browse files Browse the repository at this point in the history
  • Loading branch information
jardon authored and kbdharun committed Oct 21, 2024
1 parent 8245f0c commit ea43399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/task-struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func (t *Task) Unit() string {

// Delete deletes a task
func (t *Task) Delete() error {
err := os.Remove(getUserTasksLocation() + "/" + t.Name + ".vsotask")
err := os.Remove(getUserTasksLocation() + "/" + t.Slug + ".vsotask")
if err != nil {
return err
}
Expand Down

0 comments on commit ea43399

Please sign in to comment.