mirror of
https://github.com/foomo/posh-providers.git
synced 2025-10-16 12:35:41 +00:00
fix(golang-migrate/migrate): lint issue
This commit is contained in:
parent
7a681e3a63
commit
3a5555eae6
@ -169,8 +169,7 @@ func (c *Command) execute(ctx context.Context, r *readline.Readline) error {
|
||||
m.Log = &logger{l: c.l}
|
||||
|
||||
go func() {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
if <-ctx.Done(); true {
|
||||
c.l.Info("triggering graceful migration shutdown")
|
||||
m.GracefulStop <- true
|
||||
}
|
||||
@ -194,11 +193,11 @@ func (c *Command) execute(ctx context.Context, r *readline.Readline) error {
|
||||
case "down-by-one":
|
||||
return m.Steps(-1)
|
||||
case "force":
|
||||
i, err := strconv.ParseInt(r.Args().At(3), 10, 64)
|
||||
i, err := strconv.Atoi(r.Args().At(3))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return m.Force(int(i))
|
||||
return m.Force(i)
|
||||
case "drop":
|
||||
return m.Drop()
|
||||
case "version":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user