-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
[ISSUE #5727 service-1] improve the code quality of nacos-config #5744
Merged
KomachiSion
merged 5 commits into
alibaba:develop
from
brotherlu-xcq:fix-#5727-service-1
May 18, 2021
Merged
[ISSUE #5727 service-1] improve the code quality of nacos-config #5744
KomachiSion
merged 5 commits into
alibaba:develop
from
brotherlu-xcq:fix-#5727-service-1
May 18, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…variable to match common code habits , return first, reduce the if/for nest, change the Chinese javadoc to English.
KomachiSion
requested changes
May 17, 2021
@@ -58,7 +58,7 @@ | |||
|
|||
@Autowired | |||
private TenantCapacityPersistService tenantCapacityPersistService; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not change the indent.
Use nacos code style to reformat codes
KomachiSion
requested changes
May 17, 2021
ConfigInfo4Beta cf = persistService.findConfigInfo4Beta(dataId, group, tenant); | ||
|
||
build.remove(Objects.isNull(cf)); | ||
build.betaIps(Objects.isNull(cf) ? null : cf.getBetaIps()); | ||
build.content(Objects.isNull(cf) ? null : cf.getContent()); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same problem with before.
KomachiSion
approved these changes
May 18, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please do not create a Pull Request without creating an issue first.
What is the purpose of the change
improve the code quality of
nacos-config
, directoryservice
part 1Fixes #5727
Brief changelog
Verifying this change
Follow this checklist to help us incorporate your contribution quickly and easily:
[ISSUE #123] Fix UnknownException when host config not exist
. Each commit in the pull request should have a meaningful subject line and body.mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true
to make sure basic checks pass. Runmvn clean install -DskipITs
to make sure unit-test pass. Runmvn clean test-compile failsafe:integration-test
to make sure integration-test pass.