Skip to content

Commit

Permalink
fix: changing some syntax in push.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Claire.Nicholas authored and Claire.Nicholas committed Jan 19, 2024
1 parent 78baa61 commit 62e224e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/actions/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (a *Push) GetTag() bool {
// GetDeleteBranch returns the DeleteBranch field from the provided Push. If the object is nil,
// or the field within the object is nil, it returns the zero value instead.
func (a *Push) GetDeleteBranch() bool {
// return zero value if Push type or Tag field is nil
// return zero value if Push type or DeleteBranch field is nil
if a == nil || a.DeleteBranch == nil {
return false
}
Expand All @@ -83,7 +83,7 @@ func (a *Push) GetDeleteBranch() bool {
// GetDeleteTag returns the DeleteTag field from the provided Push. If the object is nil,
// or the field within the object is nil, it returns the zero value instead.
func (a *Push) GetDeleteTag() bool {
// return zero value if Push type or Tag field is nil
// return zero value if Push type or DeleteTag field is nil
if a == nil || a.DeleteTag == nil {
return false
}
Expand Down

0 comments on commit 62e224e

Please sign in to comment.