diff --git a/cmd/omniflixhubd/cmd/root.go b/cmd/omniflixhubd/cmd/root.go index 73a6e25..79ceb94 100644 --- a/cmd/omniflixhubd/cmd/root.go +++ b/cmd/omniflixhubd/cmd/root.go @@ -5,7 +5,6 @@ import ( "fmt" "io" "os" - "path/filepath" "github.com/cosmos/cosmos-sdk/baseapp" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" @@ -183,14 +182,10 @@ func addModuleInitFlags(startCmd *cobra.Command) { } func tempDir() string { -<<<<<<< HEAD - dir := filepath.Join(os.TempDir(), "."+app.Name+"-temp") -======= dir, err := os.MkdirTemp("", "."+app.Name+"-temp") if err != nil { panic(fmt.Sprintf("failed creating temp directory: %s", err.Error())) } ->>>>>>> main defer os.RemoveAll(dir) return dir