Cleanup: reformat all Go files
Run `go fmt` on all files, to fix their formatting. No functional changes.
This commit is contained in:
parent
b20ede97ea
commit
44ec93275d
@ -215,7 +215,6 @@ func fileCopy(src, dest string) (error, string) {
|
||||
return nil, msg
|
||||
}
|
||||
|
||||
|
||||
func fileExists(filename string) bool {
|
||||
_, err := os.Stat(filename)
|
||||
return !errors.Is(err, fs.ErrNotExist)
|
||||
|
@ -345,7 +345,6 @@ func TestCmdCopyFileDestinationExists(t *testing.T) {
|
||||
assert.Error(t, f.run())
|
||||
}
|
||||
|
||||
|
||||
func TestCmdCopyFileSourceIsDir(t *testing.T) {
|
||||
f := newCmdCopyFileFixture(t)
|
||||
defer f.finish(t)
|
||||
@ -372,7 +371,6 @@ func TestCmdCopyFileSourceIsDir(t *testing.T) {
|
||||
assert.Error(t, f.run())
|
||||
}
|
||||
|
||||
|
||||
func newCmdCopyFileFixture(t *testing.T) cmdCopyFileFixture {
|
||||
mockCtrl := gomock.NewController(t)
|
||||
ce, mocks := testCommandExecutor(t, mockCtrl)
|
||||
|
Loading…
x
Reference in New Issue
Block a user