forked from coop-cloud/abra
refactor: use variable to make more readable
This commit is contained in:
parent
d97da9f45c
commit
58bdb456df
|
@ -95,10 +95,8 @@ func (a App) EnsureVersion(version string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if err := worktree.Checkout(&git.CheckoutOptions{
|
||||
Branch: tagRef,
|
||||
Keep: true,
|
||||
}); err != nil {
|
||||
opts := &git.CheckoutOptions{Branch: tagRef, Keep: true}
|
||||
if err := worktree.Checkout(opts); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue