Skip to content

Commit

Permalink
fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 committed Sep 20, 2024
1 parent 3f401e9 commit 6630980
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/omniflixhubd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6630980

Please sign in to comment.