Skip to content

Commit f265cff

Browse files
committed
fix gofmt issues
Signed-off-by: Mike Brown <[email protected]>
1 parent cf53015 commit f265cff

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

fs/copy_linux_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ package fs
2020

2121
import (
2222
"io"
23-
"path/filepath"
24-
"math/rand"
2523
"io/ioutil"
24+
"math/rand"
2625
"os"
2726
"os/exec"
27+
"path/filepath"
2828
"testing"
2929

3030
"github.com/containerd/continuity/testutil"
@@ -59,7 +59,7 @@ func TestCopyReflinkWithXFS(t *testing.T) {
5959
}
6060
unmounted := false
6161
defer func() {
62-
if !unmounted{
62+
if !unmounted {
6363
testutil.Unmount(t, mnt)
6464
}
6565
loop.Close()

testutil/loopback/loopback_linux.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"io/ioutil"
2323
"os"
2424
"os/exec"
25-
"syscall"
2625
"strings"
26+
"syscall"
2727

2828
"github.com/pkg/errors"
2929
"github.com/sirupsen/logrus"
@@ -70,9 +70,9 @@ func New(size int64) (*Loopback, error) {
7070
}
7171

7272
l := Loopback{
73-
File: file.Name(),
73+
File: file.Name(),
7474
Device: deviceName,
75-
close: cleanup,
75+
close: cleanup,
7676
}
7777
return &l, nil
7878
}
@@ -83,7 +83,7 @@ type Loopback struct {
8383
File string
8484
// Device is /dev/loopX
8585
Device string
86-
close func() error
86+
close func() error
8787
}
8888

8989
// SoftSize returns st_size

0 commit comments

Comments
 (0)