Merge pull request #3480 from tianon/gofmt

Run 'gofmt -s -w'
This commit is contained in:
Michael Crosby 2014-01-07 06:41:23 -08:00
commit 1f9abfe841
6 changed files with 8 additions and 9 deletions

View File

@ -1,8 +1,8 @@
package engine package engine
import ( import (
"path"
"net/http" "net/http"
"path"
) )
// ServeHTTP executes a job as specified by the http request `r`, and sends the // ServeHTTP executes a job as specified by the http request `r`, and sends the
@ -22,7 +22,7 @@ func (eng *Engine) ServeHTTP(w http.ResponseWriter, r *http.Request) {
jobArgs = []string{} jobArgs = []string{}
} }
w.Header().Set("Job-Name", jobName) w.Header().Set("Job-Name", jobName)
for _, arg := range(jobArgs) { for _, arg := range jobArgs {
w.Header().Add("Job-Args", arg) w.Header().Add("Job-Args", arg)
} }
job := eng.Job(jobName, jobArgs...) job := eng.Job(jobName, jobArgs...)

View File

@ -1,8 +1,8 @@
package docker package docker
import ( import (
"os"
"io" "io"
"os"
) )
func CopyFile(dstFile, srcFile *os.File) error { func CopyFile(dstFile, srcFile *os.File) error {

View File

@ -25,8 +25,8 @@ btrfs_reflink(int fd_out, int fd_in)
import "C" import "C"
import ( import (
"os"
"io" "io"
"os"
"syscall" "syscall"
) )

View File

@ -322,7 +322,6 @@ func migratePortMappings(config *Config, hostConfig *HostConfig) error {
return nil return nil
} }
// Links come in the format of // Links come in the format of
// name:alias // name:alias
func parseLink(rawLink string) (map[string]string, error) { func parseLink(rawLink string) (map[string]string, error) {