Skip to content

Commit

Permalink
gofumpt run.go
Browse files Browse the repository at this point in the history
Signed-off-by: Vishwas Siravara <[email protected]>
  • Loading branch information
vsiravar committed Sep 24, 2023
1 parent 94580e7 commit 218a17f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ffs/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func CreateNestedDir(dirPath string) string {
return fullPath
}

// CreateFilePathInHome creates a filepath and returns the path
// CreateFilePathInHome creates a filepath and returns the path.
func CreateFilePathInHome(dirPath string) string {
homeDir, err := os.UserHomeDir()
gomega.Expect(err).ShouldNot(gomega.HaveOccurred())
Expand Down
5 changes: 2 additions & 3 deletions tests/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ func Run(o *RunOption) {
})

ginkgo.It("should set the bind mount as readonly with --mount <src>=/src,<target>=/target,ro", func() {
var err error = nil
var err error
file := ffs.CreateTempFile("bar.txt", "foo")
fileDir := filepath.Dir(file)
ginkgo.DeferCleanup(os.RemoveAll, fileDir)
Expand Down Expand Up @@ -724,10 +724,9 @@ func verifyMountsInfo(actual []MountJSON, want []MountJSON) {
}

func getWslPath(winPath string) (string, error) {
var path = filepath.Clean(winPath)
var err error

path, err = filepath.Abs(winPath)
path, err := filepath.Abs(filepath.Clean(winPath))
if err != nil {
return "", err
}
Expand Down

0 comments on commit 218a17f

Please sign in to comment.