Fix: only_platform circular argument reference (#1160)
Remove a circular argument reference of only_platform, which was causing scripts in ./bin/ to error out when using Ruby version 2.7.
This commit is contained in:
@@ -49,7 +49,7 @@ class AtomicRedTeam
|
||||
# techniques that already have one or more Atomic Red Team tests, or the create page for
|
||||
# techniques that have no existing tests for the given OS.
|
||||
#
|
||||
def github_link_to_technique(technique, include_identifier: false, only_platform: only_platform)
|
||||
def github_link_to_technique(technique, include_identifier: false, only_platform: self.only_platform)
|
||||
technique_identifier = ATTACK_API.technique_identifier_for_technique(technique).upcase
|
||||
link_display = "#{"#{technique_identifier.upcase} " if include_identifier}#{technique['name']}"
|
||||
yaml_file = "#{ATOMICS_DIRECTORY}/#{technique_identifier}/#{technique_identifier}.yaml"
|
||||
|
||||
Reference in New Issue
Block a user