Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit 98d2767

Browse files
committed
rubocop: fix Style/IndentHeredoc
1 parent 790afbb commit 98d2767

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/puppet/parser/functions/scope_defaults.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module Puppet::Parser::Functions
22
newfunction(:scope_defaults, type: :rvalue, doc: <<-EOS
3-
Determine if specified resource defaults have a attribute defined in
4-
current scope.
5-
EOS
3+
Determine if specified resource defaults have a attribute defined in
4+
current scope.
5+
EOS
66
) do |arguments|
77
if arguments.size != 2
88
raise(Puppet::ParseError, 'scope_defaults(): Wrong number of arguments ' \

lib/puppet/parser/functions/staging_parse.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
module Puppet::Parser::Functions
44
newfunction(:staging_parse, type: :rvalue, doc: <<-EOS
5-
Parse filepath to retrieve information about the file.
6-
EOS
5+
Parse filepath to retrieve information about the file.
6+
EOS
77
) do |arguments|
88
if arguments.empty? || arguments.size > 3
99
raise(Puppet::ParseError, 'staging_parse(): Wrong number of arguments ' \
1010
"given (#{arguments.size} for 1, 2, 3)")
1111
end
1212

13-
source = arguments[0]
14-
path = URI.parse(source.tr('\\', '/')).path
13+
source = arguments[0]
14+
path = URI.parse(source.tr('\\', '/')).path
1515

1616
if path.nil?
1717
raise Puppet::ParseError, "staging_parse(): #{source.inspect} has no URI " \

0 commit comments

Comments
 (0)