Skip to content

Commit

Permalink
Fix command ID (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
aelsabbahy authored Nov 16, 2019
1 parent 9dddd81 commit 4aa1330
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions resource/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ type Command struct {
Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"`
}

func (c *Command) ID() string {
if c.Exec != "" && c.Exec != c.Command {
return fmt.Sprintf("%s: %s", c.Command, c.Exec)
}
return c.Command
}
func (c *Command) ID() string { return c.Command }
func (c *Command) SetID(id string) { c.Command = id }

func (c *Command) GetTitle() string { return c.Title }
Expand Down

0 comments on commit 4aa1330

Please sign in to comment.