alibaba / alibaba/tac

ConsoleApplication.java中有段代码重复

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
289
Forks
54
PR merge metrics
No merged PRs in 30d

Description

if (!webEnv) {
// command model
springApplication.setAdditionalProfiles(additionProfile);
} else {
// web model
springApplication.setAdditionalProfiles(additionProfile);
}
这里配置在上面已经按环境区分了,这里设置代码重复了。

Contributor guide

No contributing guide indexed for this repository

Research direction

Open ConsoleApplication.java and inspect the webEnv conditional around springApplication.setAdditionalProfiles(additionProfile). Remove the duplicated environment branches while preserving the existing profile configuration; the work is done when the profile is set without redundant conditional code.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.