Skip to content

Commit

Permalink
WithStyle should be fluent
Browse files Browse the repository at this point in the history
  • Loading branch information
elldritch committed Apr 12, 2022
1 parent 93035c9 commit c341329
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion block_object.go
Expand Up @@ -187,8 +187,9 @@ func (s ConfirmationBlockObject) validateType() MessageObjectType {
}

// WithStyle add styling to confirmation object
func (s *ConfirmationBlockObject) WithStyle(style Style) {
func (s *ConfirmationBlockObject) WithStyle(style Style) *ConfirmationBlockObject {
s.Style = style
return s
}

// NewConfirmationBlockObject returns an instance of a new Confirmation Block Object
Expand Down

0 comments on commit c341329

Please sign in to comment.