Skip to content

Commit

Permalink
Remove staticchecks warnings for migrator
Browse files Browse the repository at this point in the history
  • Loading branch information
gezimbll authored and danbogos committed Nov 8, 2023
1 parent 09e5088 commit c7e1f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cgr-migrator/cgr-migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func main() {
defer m.Close()
config.SetCgrConfig(mgrCfg)
if exec != nil && *exec != utils.EmptyString { // Run migrator
if err, migrstats := m.Migrate(strings.Split(*exec, utils.FieldsSep)); err != nil {
if migrstats, err := m.Migrate(strings.Split(*exec, utils.FieldsSep)); err != nil {
log.Fatal(err)
} else if *verbose {
log.Printf("Data migrated: %+v", migrstats)
Expand Down

0 comments on commit c7e1f8f

Please sign in to comment.