From 568e07da0174cf7672f040b573d128dc568e5c80 Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Wed, 17 Sep 2014 12:36:56 -0400 Subject: [PATCH] allow path to be nil --- lib/licensee/license_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/licensee/license_file.rb b/lib/licensee/license_file.rb index 043437b..196cc79 100644 --- a/lib/licensee/license_file.rb +++ b/lib/licensee/license_file.rb @@ -12,7 +12,7 @@ class Licensee attr_accessor :contents def initialize(path=nil) - @path = File.expand_path(path) + @path = File.expand_path(path) unless path.nil? end def contents