diff options
Diffstat (limited to 'lib/puppet/file_serving/content.rb')
-rw-r--r-- | lib/puppet/file_serving/content.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/file_serving/content.rb b/lib/puppet/file_serving/content.rb index cacd908e8..a7fd2045d 100644 --- a/lib/puppet/file_serving/content.rb +++ b/lib/puppet/file_serving/content.rb @@ -37,14 +37,14 @@ class Puppet::FileServing::Content < Puppet::FileServing::Base def content unless @content # This stat can raise an exception, too. - raise(ArgumentError, "Cannot read the contents of links unless following links") if stat().ftype == "symlink" + raise(ArgumentError, "Cannot read the contents of links unless following links") if stat.ftype == "symlink" - @content = ::File.read(full_path()) + @content = ::File.read(full_path) end @content end def to_raw - File.new(full_path(), "r") + File.new(full_path, "r") end end |