Skip to content

Commit 33ffce9

Browse files
Fix Style/TernaryParentheses violations
1 parent aff4f91 commit 33ffce9

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -320,15 +320,6 @@ Style/SymbolProc:
320320
- 'lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_version_helper.rb'
321321
- 'lib/fastlane/plugin/wpmreleasetoolkit/models/configuration.rb'
322322

323-
# Offense count: 2
324-
# This cop supports safe autocorrection (--autocorrect).
325-
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
326-
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
327-
Style/TernaryParentheses:
328-
Exclude:
329-
- 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/extract_release_notes_for_version_action.rb'
330-
- 'lib/fastlane/plugin/wpmreleasetoolkit/helper/configure_helper.rb'
331-
332323
# Offense count: 3
333324
# This cop supports safe autocorrection (--autocorrect).
334325
Style/UnlessElse:

lib/fastlane/plugin/wpmreleasetoolkit/helper/configure_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def self.update_configure_file_commit_hash(new_hash)
7272
### NB: Returns nil if the repo is in a detached HEAD state.
7373
def self.repo_branch_name
7474
result = `cd #{repository_path} && git rev-parse --abbrev-ref HEAD`.strip
75-
(result == 'HEAD') ? nil : result
75+
result == 'HEAD' ? nil : result
7676
end
7777

7878
### Returns the most recent commit hash in the `~/.mobile-secrets` repository.

0 commit comments

Comments
 (0)