Removed warnings from go staticcheck

This commit is contained in:
gezimbll
2023-11-03 12:20:48 -04:00
committed by Dan Christian Bogos
parent 529430bd4d
commit c2dacc42c1
97 changed files with 334 additions and 761 deletions

View File

@@ -34,7 +34,7 @@ func (m *Migrator) migrateCurrentTPaccountAcction() (err error) {
return err
}
if accAct != nil {
if m.dryRun != true {
if !m.dryRun {
if err := m.storDBOut.StorDB().SetTPAccountActions(accAct); err != nil {
return err
}

View File

@@ -40,7 +40,7 @@ func (m *Migrator) migrateCurrentTPactionplans() (err error) {
return err
}
if actPln != nil {
if m.dryRun != true {
if !m.dryRun {
if err := m.storDBOut.StorDB().SetTPActionPlans(actPln); err != nil {
return err
}

View File

@@ -39,7 +39,7 @@ func (m *Migrator) migrateCurrentTPactiontriggers() (err error) {
return err
}
if actTrg != nil {
if m.dryRun != true {
if !m.dryRun {
if err := m.storDBOut.StorDB().SetTPActionTriggers(actTrg); err != nil {
return err
}

View File

@@ -39,7 +39,7 @@ func (m *Migrator) migrateCurrentTPactions() (err error) {
return err
}
if action != nil {
if m.dryRun != true {
if !m.dryRun {
if err := m.storDBOut.StorDB().SetTPActions(action); err != nil {
return err
}

View File

@@ -39,7 +39,7 @@ func (m *Migrator) migrateCurrentTPdestinationrates() (err error) {
return err
}
if destRate != nil {
if m.dryRun != true {
if !m.dryRun {
if err := m.storDBOut.StorDB().SetTPDestinationRates(destRate); err != nil {
return err
}

View File

@@ -39,7 +39,7 @@ func (m *Migrator) migrateCurrentTPDestinations() (err error) {
return err
}
if destinations != nil {
if m.dryRun != true {
if !m.dryRun {
if err := m.storDBOut.StorDB().SetTPDestinations(destinations); err != nil {
return err
}

View File

@@ -40,7 +40,7 @@ func (m *Migrator) migrateCurrentTPrates() (err error) {
return err
}
if rates != nil {
if m.dryRun != true {
if !m.dryRun {
if err := m.storDBOut.StorDB().SetTPRates(rates); err != nil {
return err
}

View File

@@ -40,7 +40,7 @@ func (m *Migrator) migrateCurrentTPratingplans() (err error) {
return err
}
if ratingPlan != nil {
if m.dryRun != true {
if !m.dryRun {
if err := m.storDBOut.StorDB().SetTPRatingPlans(ratingPlan); err != nil {
return err
}

View File

@@ -36,7 +36,7 @@ func (m *Migrator) migrateCurrentTPratingprofiles() (err error) {
return err
}
if ratingProfile != nil {
if m.dryRun != true {
if !m.dryRun {
if err := m.storDBOut.StorDB().SetTPRatingProfiles(ratingProfile); err != nil {
return err
}