Skip to content

Commit 68fae5f

Browse files
authored
Merge pull request #9286 from carrychair/main
remove repetitive words
2 parents 500c601 + 87689c8 commit 68fae5f

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

Diff for: lib/puppet.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def self.push_context(overrides, description = "")
259259
@context.push(overrides, description)
260260
end
261261

262-
# Push something onto the the context and make it global across threads. This
262+
# Push something onto the context and make it global across threads. This
263263
# has the potential to convert threadlocal overrides earlier on the stack into
264264
# global overrides.
265265
# @api private

Diff for: lib/puppet/parser/scope.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def class_scope(klass)
425425
# additive -- it collects all of the defaults, with defaults
426426
# in closer scopes overriding those in later scopes.
427427
#
428-
# The lookupdefaults searches in the the order:
428+
# The lookupdefaults searches in the order:
429429
#
430430
# * inherited
431431
# * contained (recursive)

Diff for: lib/puppet/pops/evaluator/epp_evaluator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def self.evaluate(parser, func_name, scope, use_global_scope_only, parse_result,
8282
end
8383

8484
# filter out all qualified names and set them in qualified_variables
85-
# only pass unqualified (filtered) variable names to the the template
85+
# only pass unqualified (filtered) variable names to the template
8686
filtered_args = {}
8787
template_args.each_pair do |k, v|
8888
if k =~ /::/

Diff for: lib/puppet/pops/loader/module_loaders.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def global?
347347
end
348348

349349
# Answers `true` if the loader used by this instance is rooted beneath 'lib'. This is
350-
# typically true for the the system_loader. It will have a path relative to the parent
350+
# typically true for the system_loader. It will have a path relative to the parent
351351
# of 'puppet' instead of the parent of 'lib/puppet' since the 'lib' directory of puppet
352352
# is renamed during install. This is significant for loaders that load ruby code.
353353
#

Diff for: lib/puppet/pops/types/p_object_type.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ def parameter_info(impl_class)
656656
index = param_names.index(ip)
657657
if index.nil?
658658
raise Serialization::SerializationError,
659-
"Initializer for class #{impl_class.name} parameter '#{ip}' does not match any of the the attributes of type #{name}"
659+
"Initializer for class #{impl_class.name} parameter '#{ip}' does not match any of the attributes of type #{name}"
660660
end
661661
new_param_types << param_types[index]
662662
end

Diff for: lib/puppet/pops/types/string_converter.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ def string_PBinaryType(val_type, val, format_map, _)
790790
Kernel.format(f.orig_fmt.gsub('s', substitute), val_to_convert)
791791

792792
when :p
793-
# width & precision applied to string, not the the name of the type
793+
# width & precision applied to string, not the name of the type
794794
"Binary(\"#{Kernel.format(f.orig_fmt.tr('p', 's'), val.to_s)}\")"
795795

796796
when :b

Diff for: lib/puppet/type.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1904,7 +1904,7 @@ def self.unprovide(name)
19041904

19051905
# Returns a list of suitable providers for the given type.
19061906
# A call to this method will load all providers if not already loaded and ask each if it is
1907-
# suitable - those that are are included in the result.
1907+
# suitable - those that are included in the result.
19081908
# @note This method also does some special processing which rejects a provider named `:fake` (for testing purposes).
19091909
# @return [Array<Puppet::Provider>] Returns an array of all suitable providers.
19101910
#

Diff for: lib/puppet/type/file.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ def write(property = nil)
972972

973973
private
974974

975-
# Carry the context of sensitive parameters to the the properties that will actually handle that
975+
# Carry the context of sensitive parameters to the properties that will actually handle that
976976
# sensitive data.
977977
#
978978
# The file type can accept file content from a number of origins and depending on the current

Diff for: spec/unit/node/environment_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def assert_manifest_conflict(expectation, envconf_manifest_value)
518518
expect(krt.find_definition('foo')).to be_kind_of(Puppet::Resource::Type)
519519
end
520520

521-
it "parses from the the environment's manifests if Puppet[:code] is not set" do
521+
it "parses from the environment's manifests if Puppet[:code] is not set" do
522522
filename = tmpfile('a_manifest.pp')
523523
File.open(filename, 'w') do |f|
524524
f.puts("define from_manifest {}")

Diff for: spec/unit/ssl/ssl_provider_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
}.to raise_error(ArgumentError, /CA certs are missing/)
255255
end
256256

257-
it 'raises if CRLs are are missing' do
257+
it 'raises if CRLs are missing' do
258258
expect {
259259
subject.create_context(**config.merge(crls: nil))
260260
}.to raise_error(ArgumentError, /CRLs are missing/)

0 commit comments

Comments
 (0)