mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
chore: slice replace loop (#2757)
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
@@ -47,9 +47,7 @@ func (c *Command) Stderr() string {
|
||||
}
|
||||
|
||||
func (c *Command) AddArgs(args []string) {
|
||||
for _, arg := range args {
|
||||
c.args = append(c.args, arg)
|
||||
}
|
||||
c.args = append(c.args, args...)
|
||||
}
|
||||
|
||||
// CreateCommand returns a *Cmd struct that when run, will run the given command + args in the given directory
|
||||
|
||||
Reference in New Issue
Block a user