diff options
author | 2019-06-25 08:00:33 +0100 | |
---|---|---|
committer | 2019-06-25 15:00:33 +0800 | |
commit | cd176f859b2e71d8919c56ff67235c226ab5b48e (patch) | |
tree | e1ee9a8c19d3e198627e289dd998caebfa53bb21 /plugin/log/setup.go | |
parent | 123628dc469ec90b2414931988ee27993d2d9648 (diff) | |
download | coredns-cd176f859b2e71d8919c56ff67235c226ab5b48e.tar.gz coredns-cd176f859b2e71d8919c56ff67235c226ab5b48e.tar.zst coredns-cd176f859b2e71d8919c56ff67235c226ab5b48e.zip |
Run gofmt -s and golint on the codebase (#2918)
* Run gofmt -s and golint on the codebase
Run golint and fix everythign it flagged (except the context arg
ordering), mostly edits in the rewrite plugin.
Signed-off-by: Miek Gieben <miek@miek.nl>
* ... and ofcourse the test as well
Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/log/setup.go')
-rw-r--r-- | plugin/log/setup.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/log/setup.go b/plugin/log/setup.go index b9ecb1f72..be3256704 100644 --- a/plugin/log/setup.go +++ b/plugin/log/setup.go @@ -104,7 +104,7 @@ func logParse(c *caddy.Controller) ([]Rule, error) { classes[response.All] = struct{}{} } - for i := len(rules) - 1; i >= length; i -= 1 { + for i := len(rules) - 1; i >= length; i-- { rules[i].Class = classes } } |