Commit 934f2623 authored by Mark Tyneway's avatar Mark Tyneway

op-chain-ops: fix linting

parent d69f333d
......@@ -65,7 +65,7 @@ func main() {
},
cli.BoolFlag{
Name: "dry-run",
Usage: "Dry run the upgrade by not commiting the database",
Usage: "Dry run the upgrade by not committing the database",
},
},
Action: func(ctx *cli.Context) error {
......@@ -155,10 +155,14 @@ func main() {
}
if ctx.Bool("dry-run") {
log.Info("Dry run complete")
return nil
}
root, err := sdb.Commit(true)
if err != nil {
return err
}
log.Info("Migration complete", "root", root)
return nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment