Skip to content

Commit

Permalink
Merge pull request #9 from bavix/agent-register
Browse files Browse the repository at this point in the history
allow replace
  • Loading branch information
rez1dent3 authored Jul 30, 2024
2 parents 2dac20b + a077c24 commit 09ac5d8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/infra/templater/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,6 @@ func (t *ServiceGenerator) writeToFile(filePath string, content string) (string,
return "", err
}

// Check if the file already exists.
if _, err := os.Stat(filePath); !os.IsNotExist(err) {
// If the file exists, return the file path.
return filePath, nil
}

// Open the file for writing.
f, err := os.Create(filePath)
if err != nil {
Expand Down

0 comments on commit 09ac5d8

Please sign in to comment.