We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d18ae0 commit 3b206efCopy full SHA for 3b206ef
executils/process.go
@@ -34,7 +34,7 @@ type Process struct {
34
// The first argument is the path to the executable, the remainder are the
35
// arguments to the command.
36
func NewProcess(args ...string) (*Process, error) {
37
- if args == nil || len(args) == 0 {
+ if len(args) == 0 {
38
return nil, errors.New(tr("no executable specified"))
39
}
40
p := &Process{
0 commit comments