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:
wilsonwr
2020-07-30 11:36:12 -06:00
committed by GitHub
parent 0edb546228
commit c67a4f55f7
+1 -1
View File
@@ -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"