Skip to content

Commit

Permalink
fix lint 1
Browse files Browse the repository at this point in the history
  • Loading branch information
KB-perByte committed Jan 25, 2024
1 parent fd19543 commit 6107972
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ansiblelint/rules/galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
from typing import TYPE_CHECKING, Any

from ansiblelint.constants import FILENAME_KEY, LINE_NUMBER_KEY
from ansiblelint.errors import MatchError
from ansiblelint.file_utils import Lintable
from ansiblelint.rules import AnsibleLintRule

if TYPE_CHECKING:
Expand Down Expand Up @@ -37,6 +35,7 @@ class GalaxyRule(AnsibleLintRule):

def matchplay(self, file: Lintable, data: dict[str, Any]) -> list[MatchError]:
"""Return matches found for a specific play (entry in playbook)."""
changelog_file_data = []
if file.kind == "changelog":
global CHANGELOG_FILE
CHANGELOG_FILE = list(changelog_file_data.data.get("releases", None).keys())
Expand Down

0 comments on commit 6107972

Please sign in to comment.