lib/thinreports/report/internal.rb in thinreports-0.10.1 vs lib/thinreports/report/internal.rb in thinreports-0.10.2
- old
+ new
@@ -31,12 +31,10 @@
if options.empty? || options[:default]
@default_layout = init_layout(layout)
else
id = options[:id].to_sym
- if layout_registry.key?(id)
- raise ArgumentError, "Id :#{id} is already in use."
- end
+ raise ArgumentError, "Id :#{id} is already in use." if layout_registry.key?(id)
layout_registry[id] = init_layout(layout, id)
end
end
def add_page(new_page)