Skip to content

Commit b43f80d

Browse files
author
Justin Greer
committed
Simple changes that help make writing tests easier.
1 parent d405792 commit b43f80d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/m3uzi.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ def generate_byterange_line(file)
188188

189189
def add_file(path = nil, duration = nil)
190190
new_file = M3Uzi::File.new
191-
new_file.path = path
192-
new_file.duration = duration
191+
new_file.path = path if path
192+
new_file.duration = duration if duration
193193
yield(new_file) if block_given?
194194
@playlist_items << new_file
195195
end

lib/m3uzi/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
class M3Uzi
2-
VERSION = '0.4.0'
2+
VERSION = '0.4.1'
33
end

0 commit comments

Comments
 (0)