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

op-chain-ops: fix linting

parent d69f333d
...@@ -65,7 +65,7 @@ func main() { ...@@ -65,7 +65,7 @@ func main() {
}, },
cli.BoolFlag{ cli.BoolFlag{
Name: "dry-run", 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 { Action: func(ctx *cli.Context) error {
...@@ -155,10 +155,14 @@ func main() { ...@@ -155,10 +155,14 @@ func main() {
} }
if ctx.Bool("dry-run") { if ctx.Bool("dry-run") {
log.Info("Dry run complete")
return nil return nil
} }
root, err := sdb.Commit(true) root, err := sdb.Commit(true)
if err != nil {
return err
}
log.Info("Migration complete", "root", root) log.Info("Migration complete", "root", root)
return nil 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