Skip to content

Commit

Permalink
[SpecFile.reload()] don't _read_spec_content() before update()
Browse files Browse the repository at this point in the history
The SpecContent instance which _read_spec_content() returns
is thrown away so the call is useless.
update() calls it too, but saves the instance to self.spec_content
  • Loading branch information
jpopelka authored and nforro committed Feb 28, 2020
1 parent 21f6fe1 commit 5a720ce
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion rebasehelper/specfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,6 @@ def copy(self, new_path):

def reload(self):
"""Reloads the whole Spec file."""
self._read_spec_content()
self.update()

def save(self):
Expand Down

0 comments on commit 5a720ce

Please sign in to comment.