[Fix #7928] Fix a false positive for `Style/GuardClause` by koic · Pull Request #7935 · rubocop/rubocop

Fixes #7928. This PR fixes a false positive for Style/GuardClause when assigning the result of a guard condition with else. Before submitting the PR make sure the following are checked: Wrote go...