Skip to content
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

feat | refactor code for stable release #158

Merged

Conversation

sachinargade123
Copy link
Contributor

@sachinargade123 sachinargade123 commented May 10, 2024

Description

Added

  • Refactor code to make stable release

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

Copy link
Contributor

@adityagajbhiye9 adityagajbhiye9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adityagajbhiye9
Copy link
Contributor

@ChetanT-System Please review and approve

Copy link
Contributor

@ChetanT-System ChetanT-System left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for me

private List<String> getAndOwnerBPNIfNotExist(Policies policy, List<String> values) {

if (policy.getTechnicalKey().equals(BUSINESS_PARTNER_NUMBER) && !values.isEmpty()
&& !values.contains(manufacturerId) && (values.size() == 1 && !values.get(0).equals(""))) {

Check notice

Code scanning / CodeQL

Inefficient empty string test Note

Inefficient comparison to empty string, check for zero length instead.
@almadigabor almadigabor merged commit 3b3a640 into eclipse-tractusx:main May 13, 2024
6 checks passed
@almadigabor almadigabor deleted the refactor_for-stable_code_2405 branch May 13, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants