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

移除个人依赖 #81

Merged
merged 7 commits into from Mar 22, 2021
Merged

移除个人依赖 #81

merged 7 commits into from Mar 22, 2021

Conversation

AlotOfBlahaj
Copy link
Owner

No description provided.

Signed-off-by: fzxiao233 <fzxiao@outlook.com>
Signed-off-by: fzxiao233 <fzxiao@outlook.com>
Signed-off-by: fzxiao233 <fzxiao@outlook.com>
Signed-off-by: fzxiao233 <fzxiao@outlook.com>
Signed-off-by: fzxiao233 <fzxiao@outlook.com>
@AlotOfBlahaj AlotOfBlahaj added the enhancement New feature or request label Mar 22, 2021
@AlotOfBlahaj AlotOfBlahaj self-assigned this Mar 22, 2021
time.Sleep(4 * time.Second) // wait to ensure the config is fully written
ret, err := config.ReloadConfig()
if ret {
if err == nil {
Copy link

Choose a reason for hiding this comment

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

Avoid deeply nested control flow statements.

}

func ExecShellEx(entry *log.Entry, redirect bool, name string, arg ...string) (string, string) {
func ExecShell(name string, arg ...string) string {
Copy link

Choose a reason for hiding this comment

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

exported function ExecShell should have comment or be unexported

Signed-off-by: fzxiao233 <fzxiao@outlook.com>
@codeclimate
Copy link

codeclimate bot commented Mar 22, 2021

Code Climate has analyzed commit 4add067 and detected 5 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1
Duplication 2
Style 2

View more on Code Climate.

@AlotOfBlahaj AlotOfBlahaj merged commit 95a78ce into master Mar 22, 2021
@AlotOfBlahaj AlotOfBlahaj deleted the rebase branch March 22, 2021 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant