Skip to content

Commit

Permalink
fix: deno config functions reduces
Browse files Browse the repository at this point in the history
  • Loading branch information
yashas-hm committed Mar 14, 2024
1 parent d384677 commit 5b8a4b1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,10 @@ func writeIntelliJConfig(fsys afero.Fs) error {
if err := utils.MkdirIfNotExistFS(fsys, intellijDir); err != nil {
return err
}
if err := createDenoConfig(denoPath, intelliJDeno, fsys); err != nil {
if err := afero.WriteFile(fsys, denoPath, []byte(intelliJDeno), 0644); err != nil {
return err
}

fmt.Println("Generated IntelliJ settings in " + utils.Bold(denoPath) + ". Please install the Deno plugin!")
return nil
}

func createDenoConfig(path string, template string, fsys afero.Fs) error {
return afero.WriteFile(fsys, path, []byte(template), 0644)
}

0 comments on commit 5b8a4b1

Please sign in to comment.