Skip to content

Commit

Permalink
Post merge clean ups and fix to pass lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenyuTan-amz committed Mar 21, 2022
1 parent cb4c275 commit 94c0422
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 22 deletions.
13 changes: 3 additions & 10 deletions .github/ISSUE_TEMPLATE/Feature_request.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
---
name: Feature request
labels: feature request
about: Suggest an idea for this project

---

## Feature Request

Opening a feature request kicks off a discussion.

### Proposal:
### Proposal

### Current behavior:
### Current behavior

### Desired behavior:
### Desired behavior

### Use case: <!-- [Why is this important (helps with prioritizing requests)] -->
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Required for all PRs:
# Required for all PRs:

<!-- Complete the tasks in the following list. Change [ ] to [x] to
show completion. -->
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*This is a fork of [telegraf](https://github.com/influxdata/telegraf/) project*
# This is a fork of [telegraf](https://github.com/influxdata/telegraf/) project

# Telegraf [![Circle CI](https://circleci.com/gh/influxdata/telegraf.svg?style=svg)](https://circleci.com/gh/influxdata/telegraf) [![Docker pulls](https://img.shields.io/docker/pulls/library/telegraf.svg)](https://hub.docker.com/_/telegraf/)

Expand Down
1 change: 0 additions & 1 deletion plugins/inputs/modbus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ with N decimal places'.
(FLOAT32 is deprecated and should not be used. UFIXED provides the same conversion from unsigned values).

## Trouble shooting
---

### `request` configuration style

Expand Down
9 changes: 0 additions & 9 deletions plugins/parsers/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,6 @@ func RegisterParser(name string, creator parserCreator) {
parserRegistry[name] = creator
}

type parserCreator func(config *Config)(Parser, error)
var parserRegistry map[string]parserCreator
func RegisterParser(name string, creator parserCreator) {
if parserRegistry == nil {
parserRegistry = make(map[string]parserCreator)
}
parserRegistry[name] = creator
}

// NewParser returns a Parser interface based on the given config.
func NewParser(config *Config) (Parser, error) {
var err error
Expand Down

0 comments on commit 94c0422

Please sign in to comment.