Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove repetitive words #9286

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/puppet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def self.push_context(overrides, description = "")
@context.push(overrides, description)
end

# Push something onto the the context and make it global across threads. This
# Push something onto the context and make it global across threads. This
# has the potential to convert threadlocal overrides earlier on the stack into
# global overrides.
# @api private
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/parser/scope.rb
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def class_scope(klass)
# additive -- it collects all of the defaults, with defaults
# in closer scopes overriding those in later scopes.
#
# The lookupdefaults searches in the the order:
# The lookupdefaults searches in the order:
#
# * inherited
# * contained (recursive)
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/pops/evaluator/epp_evaluator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def self.evaluate(parser, func_name, scope, use_global_scope_only, parse_result,
end

# filter out all qualified names and set them in qualified_variables
# only pass unqualified (filtered) variable names to the the template
# only pass unqualified (filtered) variable names to the template
filtered_args = {}
template_args.each_pair do |k, v|
if k =~ /::/
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/pops/loader/module_loaders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def global?
end

# Answers `true` if the loader used by this instance is rooted beneath 'lib'. This is
# typically true for the the system_loader. It will have a path relative to the parent
# typically true for the system_loader. It will have a path relative to the parent
# of 'puppet' instead of the parent of 'lib/puppet' since the 'lib' directory of puppet
# is renamed during install. This is significant for loaders that load ruby code.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/pops/types/p_object_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def parameter_info(impl_class)
index = param_names.index(ip)
if index.nil?
raise Serialization::SerializationError,
"Initializer for class #{impl_class.name} parameter '#{ip}' does not match any of the the attributes of type #{name}"
"Initializer for class #{impl_class.name} parameter '#{ip}' does not match any of the attributes of type #{name}"
end
new_param_types << param_types[index]
end
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/pops/types/string_converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ def string_PBinaryType(val_type, val, format_map, _)
Kernel.format(f.orig_fmt.gsub('s', substitute), val_to_convert)

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

when :b
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1904,7 +1904,7 @@ def self.unprovide(name)

# Returns a list of suitable providers for the given type.
# A call to this method will load all providers if not already loaded and ask each if it is
# suitable - those that are are included in the result.
# suitable - those that are included in the result.
# @note This method also does some special processing which rejects a provider named `:fake` (for testing purposes).
# @return [Array<Puppet::Provider>] Returns an array of all suitable providers.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/type/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ def write(property = nil)

private

# Carry the context of sensitive parameters to the the properties that will actually handle that
# Carry the context of sensitive parameters to the properties that will actually handle that
# sensitive data.
#
# The file type can accept file content from a number of origins and depending on the current
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/node/environment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def assert_manifest_conflict(expectation, envconf_manifest_value)
expect(krt.find_definition('foo')).to be_kind_of(Puppet::Resource::Type)
end

it "parses from the the environment's manifests if Puppet[:code] is not set" do
it "parses from the environment's manifests if Puppet[:code] is not set" do
filename = tmpfile('a_manifest.pp')
File.open(filename, 'w') do |f|
f.puts("define from_manifest {}")
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/ssl/ssl_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
}.to raise_error(ArgumentError, /CA certs are missing/)
end

it 'raises if CRLs are are missing' do
it 'raises if CRLs are missing' do
expect {
subject.create_context(**config.merge(crls: nil))
}.to raise_error(ArgumentError, /CRLs are missing/)
Expand Down