Skip to content

Add required comments to heartbeat monitors#8316

Merged
andrewvc merged 1 commit intoelastic:masterfrom
andrewvc:hbreload-hound
Sep 19, 2018
Merged

Add required comments to heartbeat monitors#8316
andrewvc merged 1 commit intoelastic:masterfrom
andrewvc:hbreload-hound

Conversation

@andrewvc
Copy link
Copy Markdown
Contributor

Some of these functions needed comments to keep inline with go style guides. The change that introduced these was in #8023 .

I also simplified one error by using errors.New instead of a custom error struct.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

error var PluginDisabledError should have name of the form ErrFoo

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

comment on exported method Monitor.Stop should be of the form "Stop ..."

Some of these functions needed comments to keep inline with go style guides.

I also simplified one error by using errors.New instead of a custom error struct.
@andrewvc andrewvc merged commit 28977fb into elastic:master Sep 19, 2018
andrewvc added a commit to andrewvc/beats that referenced this pull request Sep 19, 2018
Some of these functions needed comments to keep inline with go style guides.

I also simplified one error by using errors.New instead of a custom error struct.

(cherry picked from commit 28977fb)
andrewvc added a commit that referenced this pull request Sep 27, 2018
Some of these functions needed comments to keep inline with go style guides.

I also simplified one error by using errors.New instead of a custom error struct.

(cherry picked from commit 28977fb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants