lib/frontman/builder/file.rb in frontman-ssg-0.0.4 vs lib/frontman/builder/file.rb in frontman-ssg-0.1.0

- old
+ new

@@ -10,12 +10,10 @@ attr_accessor :path, :status sig { params(path: String, status: T.any(String, Symbol)).void } def initialize(path, status) - unless valid_status?(status) - raise "#{status} is not a valid file status!" - end + raise "#{status} is not a valid file status!" unless valid_status?(status) @path = path @status = status.to_sym end