Skip to content

Commit

Permalink
Use _original_content != value to calculate Lintable.updated
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Feb 14, 2022
1 parent 06147ec commit d87a6d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ansiblelint/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,7 @@ def content(self, value: str) -> None:
elif not self.path.exists():
# new file
self._original_content = ""
self.updated = True
if self._content != value:
self.updated = True
self.updated = self._original_content != value
self._content = value

@content.deleter
Expand Down

0 comments on commit d87a6d3

Please sign in to comment.