refactor: dont' create the same objects twice
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
knoflook 2021-09-23 18:32:58 +02:00
parent c0f92ca13d
commit cd179175f5
Signed by: knoflook
GPG Key ID: D6A1D0E8FC4FEF1C
1 changed files with 0 additions and 8 deletions

View File

@ -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