Skip to content

Commit

Permalink
Merge pull request #1 from privateerproj/tactic-bugfix
Browse files Browse the repository at this point in the history
Removed tactic var requirement
  • Loading branch information
eddie-knight authored Oct 17, 2023
2 parents 995be02 + e64c822 commit 0e85bf9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions raidengine/raidengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,13 @@ var cleanup = func() error {
}

// Run is used to execute a list of strikes provided by a Raid and customize by user config
func Run(raidName string, tactic string, availableStrikes map[string][]Strike) error {
func Run(raidName string, strikes []Strike) error {
logger = GetLogger(raidName, false)
closeHandler()

var attempts int
var failures int
strikes := availableStrikes[tactic]

if len(strikes) == 0 {
message := fmt.Sprintf("No strikes were found for the provided strike set: %s", tactic)
logger.Error(message)
return errors.New(message)
}
raidResults := &RaidResults{
RaidName: raidName,
StartTime: time.Now().String(),
Expand Down

0 comments on commit 0e85bf9

Please sign in to comment.