refactor: dont' create the same objects twice
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
c0f92ca13d
commit
cd179175f5
|
@ -76,14 +76,6 @@ var recipeReleaseCommand = &cli.Command{
|
|||
}
|
||||
|
||||
if tagstring != "" {
|
||||
repo, err := git.PlainOpen(directory)
|
||||
if err != nil {
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
head, err := repo.Head()
|
||||
if err != nil {
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
if Dry {
|
||||
logrus.Info(fmt.Sprintf("Dry run only. NOT creating tag %s at %s", tagstring, head.Hash()))
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue