Skip to content

Update Google.php (cover variable initialisation not passing the else statement) #40822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 31, 2023

Conversation

mmattel
Copy link
Contributor

@mmattel mmattel commented May 31, 2023

Description

There can be the case that two varibles are not defined when not passing the else statement throwing an undefined variable error. This is now fixed as both variables are now initialized.

Related Issue

Fixes: #40802 (Deleting a file in a Google Drive Mount throws an error)

Motivation and Context

No error should be thrown, code quality.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

Fixes: #40802 (Deleting a file in a Google Drive Mount throws an error)

There can be the case that the varible is not defined when passing the else statement throwing an `undefined variable` error. This is now fixed as both variables are now initialized.
@update-docs
Copy link

update-docs bot commented May 31, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@mmattel mmattel changed the title Update Google.php (cover variable initialisation for the else statement) Update Google.php (cover variable initialisation not passing the else statement) May 31, 2023
@mmattel mmattel requested a review from jnweiger May 31, 2023 12:24
@phil-davis
Copy link
Contributor

@mmattel needs a changelog (or add the PR to some existing changelog related to the various Google Drive issues)

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@phil-davis phil-davis merged commit 6c13c63 into master May 31, 2023
@delete-merged-branch delete-merged-branch bot deleted the mmattel-patch-1 branch May 31, 2023 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deleting a file in a Google Drive Mount throws an error
2 participants