Skip to content

Commit fd1aa6c

Browse files
committed
Run gofmt: add missing //go:build directives and trailing newlines
1 parent e73986e commit fd1aa6c

5 files changed

Lines changed: 5 additions & 2 deletions

File tree

_example/pipe.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build ignore
12
// +build ignore
23

34
package main

shellwords.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,4 +349,4 @@ func Parse(line string) ([]string, error) {
349349

350350
func ParseWithEnvs(line string) (envs []string, args []string, err error) {
351351
return NewParser().ParseWithEnvs(line)
352-
}
352+
}

shellwords_security_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ func TestUnclosedDollarCommandSubstitutionReturnsError(t *testing.T) {
7979
if err == nil {
8080
t.Fatal("expected error for unclosed command substitution, got nil")
8181
}
82-
}
82+
}

util_posix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !windows
12
// +build !windows
23

34
package shellwords

util_windows.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build windows
12
// +build windows
23

34
package shellwords

0 commit comments

Comments
 (0)