Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuki committed Apr 17, 2016
1 parent c220829 commit 3c71904
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion commands/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,3 @@ func doPull(c *cli.Context) error {

return nil
}

2 changes: 1 addition & 1 deletion commands/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/yuuki/droot/deploy"
"github.com/yuuki/droot/log"
"github.com/yuuki/droot/osutil"
"github.com/yuuki/droot/mounter"
"github.com/yuuki/droot/osutil"
)

var CommandArgRm = "--root DESTINATION_DIRECTORY"
Expand Down
4 changes: 2 additions & 2 deletions commands/run.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package commands

import (
"golang.org/x/sys/unix"
"errors"
"fmt"
"golang.org/x/sys/unix"
"os"
fp "path/filepath"
"strings"
Expand Down Expand Up @@ -41,7 +41,7 @@ var CommandRun = cli.Command{
},
cli.BoolFlag{Name: "no-dropcaps", Usage: "Provide COMMAND's process in chroot with root permission (dangerous)"},
cli.StringSliceFlag{
Name: "env, e",
Name: "env, e",
Value: &cli.StringSlice{},
Usage: "Set environment variables",
},
Expand Down
1 change: 0 additions & 1 deletion deploy/rsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ func Rsync(from, to string, arg ...string) error {

return nil
}

1 change: 0 additions & 1 deletion deploy/symlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ func DeployWithSymlink(srcDir, destDir string) error {
return nil
}


func CleanupSymlink(destDir string) error {
mainLink := destDir + ".drootmain"
backupLink := destDir + ".drootbackup"
Expand Down
2 changes: 1 addition & 1 deletion docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

godocker "github.com/fsouza/go-dockerclient"

"github.com/yuuki/droot/errwrap"
"github.com/yuuki/droot/environ"
"github.com/yuuki/droot/errwrap"
)

type Client struct {
Expand Down
3 changes: 1 addition & 2 deletions mounter/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package mounter
import (
"fmt"
"os"
"strings"
fp "path/filepath"
"strings"

"github.com/docker/docker/pkg/fileutils"
"github.com/docker/docker/pkg/mount"
Expand Down Expand Up @@ -121,4 +121,3 @@ func (m *Mounter) UmountRoot() error {

return nil
}

1 change: 0 additions & 1 deletion osutil/osutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,3 @@ func Chroot(rootDir string) error {

return nil
}

0 comments on commit 3c71904

Please sign in to comment.