Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Fix a SonarQube warning #297

Merged
merged 4 commits into from
Feb 2, 2022
Merged

Fix a SonarQube warning #297

merged 4 commits into from
Feb 2, 2022

Conversation

filipewl
Copy link
Contributor

@filipewl filipewl commented Feb 1, 2022

What's the purpose of this pull request?

Fix a SonarQube warning in a piece of the code by following its suggestion of removing a temporary variable.

How to test it?

The last commit should not have SonarQube trigger the warning anymore.

Before After
Screen Shot 2022-02-01 at 16 42 27 Screen Shot 2022-02-01 at 16 42 31

Filipe W. Lima added 2 commits February 1, 2022 15:32
> https://github.com/vtex-sites/base.store/runs/5025104180
> src/components/ui/QuantitySelector/QuantitySelector.tsx#L39
> Immediately return this expression instead of assigning it to the temporary variable "minValue".
Fix a SonarQube warning on CI:

> https://github.com/vtex-sites/base.store/runs/5025104180
>
> src/components/ui/QuantitySelector/QuantitySelector.tsx#L39
>
> Immediately return this expression instead of assigning it to the temporary variable "minValue".
@netlify
Copy link

netlify bot commented Feb 1, 2022

✔️ Deploy Preview for basestore ready!

🔨 Explore the source changes: c050583

🔍 Inspect the deploy log: https://app.netlify.com/sites/basestore/deploys/61f9bdaf12b1fc0008800655

😎 Browse the preview: https://deploy-preview-297--basestore.netlify.app

@vtex-sites
Copy link

vtex-sites bot commented Feb 1, 2022

Preview is ready

This pull request generated a Preview

👀   Preview: https://preview-297--base.preview.vtex.app
🔬   Go deeper by inspecting the Build Logs
📝   based on commit c050583

@gatsby-cloud
Copy link

gatsby-cloud bot commented Feb 1, 2022

Gatsby Cloud Build Report

basestore

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 5m

Performance

Lighthouse report

Metric Score
Performance 🔶 70
Accessibility 💚 100
Best Practices 💚 100
SEO 💚 93

🔗 View full report

@gatsby-cloud
Copy link

gatsby-cloud bot commented Feb 1, 2022

Gatsby Cloud Build Report

basestore

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 5m

Performance

Lighthouse report

Metric Score
Performance 🔶 61
Accessibility 💚 100
Best Practices 💚 100
SEO 💚 93

🔗 View full report

@filipewl filipewl changed the base branch from master to develop February 1, 2022 23:21
@filipewl filipewl merged commit 5f32a5d into develop Feb 2, 2022
@filipewl filipewl deleted the chore/fix-sonarqube-warning branch February 2, 2022 16:55
@renatamottam renatamottam mentioned this pull request Feb 7, 2022
@renatamottam renatamottam mentioned this pull request Feb 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants