Skip to content

Commit bdbe740

Browse files
committed
use transition annotation only of set
allows setting annotation with empty value
1 parent 61ebbf4 commit bdbe740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

state.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type State struct {
2222
}
2323

2424
func (s State) Annotation(name string) string {
25-
if value := s.Transition.Annotations[name]; value != "" {
25+
if value, ok := s.Transition.Annotations[name]; ok {
2626
return value
2727
}
2828

0 commit comments

Comments
 (0)