1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Improve formatting with 'go fmt' as stated in CONTRIBUTING.md

As 'go fmt' doesn't support verifying files in multiple directories,
it's probably a good idea to run it on all '*.go' files from time to
time with something like this:

  find . -name "*.go" | xargs dirname | sort -u | xargs -n 1 echo go fmt
This commit is contained in:
jbbarth 2013-08-26 17:45:52 +02:00
parent 5b84252c73
commit d80b50d4b4
4 changed files with 3 additions and 5 deletions

View file

@ -152,7 +152,6 @@ func TestRunWorkdirExists(t *testing.T) {
}
func TestRunExit(t *testing.T) {
stdin, stdinPipe := io.Pipe()
stdout, stdoutPipe := io.Pipe()

View file

@ -30,7 +30,6 @@ func setupWorkingDirectory(workdir string) {
syscall.Chdir(workdir)
}
// Takes care of dropping privileges to the desired user
func changeUser(u string) {
if u == "" {