Skip to content

Commit b79eb32

Browse files
committed
Refactor caption haml if/else logic
1 parent cd3a7b1 commit b79eb32

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
- if options[:text].nil?
2-
%caption{@tag_attributes}
1+
%caption{@tag_attributes}
2+
- if options[:text].nil?
33
- if block_given?
44
= yield
5-
6-
- else
7-
%caption{@tag_attributes}
5+
- else
86
= options[:text]

0 commit comments

Comments
 (0)