Skip to content

Commit

Permalink
Update _java.py
Browse files Browse the repository at this point in the history
  • Loading branch information
y0urself authored Aug 22, 2023
1 parent 49b5c3a commit 18d9703
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pontos/version/commands/_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ def _update_properties_file(
if not self._properties_file_path.exists():
# skip if not existing
return
pattern = (
rf"sentry\.release={VERSION_PATTERN}"
)
pattern = rf"sentry\.release={VERSION_PATTERN}"

Check warning on line 131 in pontos/version/commands/_java.py

View check run for this annotation

Codecov / codecov/patch

pontos/version/commands/_java.py#L131

Added line #L131 was not covered by tests
replace_string_in_file(
self._properties_file_path,
pattern=pattern,
Expand All @@ -150,9 +148,7 @@ def _update_swagger_config(
if not swagger_config_file:
# skip if not existing
return
pattern = (
rf'\.version\("{VERSION_PATTERN}"\)'
)
pattern = rf'\.version\("{VERSION_PATTERN}"\)'

Check warning on line 151 in pontos/version/commands/_java.py

View check run for this annotation

Codecov / codecov/patch

pontos/version/commands/_java.py#L151

Added line #L151 was not covered by tests
replace_string_in_file(
swagger_config_file, pattern=pattern, replacement=str(new_version)
)
Expand Down

0 comments on commit 18d9703

Please sign in to comment.