Skip to content

Commit

Permalink
common/redmine: RedmineCreate: if file exists, return
Browse files Browse the repository at this point in the history
  • Loading branch information
kreatoo committed Aug 27, 2024
1 parent d88f443 commit 7ea4c94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/redmine.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ func RedmineCreate(service string, subject string, message string) {
if Config.Redmine.Enabled == false {
return
}

// If file exists, return
if _, err := os.Stat(filePath); err == nil {
return
}

var priorityId int
var projectId string
Expand Down

0 comments on commit 7ea4c94

Please sign in to comment.