mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Removed warnings from go staticcheck
This commit is contained in:
committed by
Dan Christian Bogos
parent
529430bd4d
commit
c2dacc42c1
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user