Skip to content

Commit 69f3071

Browse files
committed
(CONT-811) Correct Style/RedundantArgument
1 parent 42b2805 commit 69f3071

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/puppet-lint/checks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,6 @@ def enabled_checks
129129
#
130130
# Returns the manifest as a String.
131131
def manifest
132-
PuppetLint::Data.tokens.map(&:to_manifest).join('')
132+
PuppetLint::Data.tokens.map(&:to_manifest).join
133133
end
134134
end

spec/unit/puppet-lint/lexer_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@
12891289
it 'does not enclose variable with a chained function call' do
12901290
manifest = '"This is ${a.test}"'
12911291
tokens = lexer.tokenise(manifest)
1292-
expect(tokens.map(&:to_manifest).join('')).to eq(manifest)
1292+
expect(tokens.map(&:to_manifest).join).to eq(manifest)
12931293
end
12941294
end
12951295

@@ -1688,7 +1688,7 @@
16881688
END
16891689

16901690
tokens = lexer.tokenise(manifest)
1691-
expect(tokens.map(&:to_manifest).join('')).to eq(manifest)
1691+
expect(tokens.map(&:to_manifest).join).to eq(manifest)
16921692

16931693
expect(tokens[0].type).to eq(:VARIABLE)
16941694
expect(tokens[0].value).to eq('str')
@@ -1755,7 +1755,7 @@
17551755
expect(tokens[7].raw).to eq('$myvar')
17561756
expect(tokens[7].to_manifest).to eq('$myvar')
17571757

1758-
expect(tokens.map(&:to_manifest).join('')).to eq(manifest)
1758+
expect(tokens.map(&:to_manifest).join).to eq(manifest)
17591759
end
17601760
end
17611761

0 commit comments

Comments
 (0)