Commit 9178f9d1 authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

Remove newlines between braces (#4279)

These are found with: `pcregrep -M "}\n\n}" **/*.go`
Sometimes a unneeded newline is inserted, remove those.
Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
parent 4b87be2a
...@@ -51,7 +51,6 @@ func TestWatcher(t *testing.T) { ...@@ -51,7 +51,6 @@ func TestWatcher(t *testing.T) {
if _, ok := a.Zones.Z["example.org."]; !ok { if _, ok := a.Zones.Z["example.org."]; !ok {
t.Errorf("Expected %q to still be there.", "example.org.") t.Errorf("Expected %q to still be there.", "example.org.")
} }
} }
func TestSymlinks(t *testing.T) { func TestSymlinks(t *testing.T) {
......
...@@ -27,5 +27,4 @@ func TestType(t *testing.T) { ...@@ -27,5 +27,4 @@ func TestType(t *testing.T) {
t.Errorf("Test %d: Expected what %v, but got %v", i, tc.expectedType, what) t.Errorf("Test %d: Expected what %v, but got %v", i, tc.expectedType, what)
} }
} }
} }
...@@ -76,7 +76,6 @@ func TestZoneReloadSOAChange(t *testing.T) { ...@@ -76,7 +76,6 @@ func TestZoneReloadSOAChange(t *testing.T) {
if err == nil { if err == nil {
t.Fatalf("Zone should not have been re-parsed") t.Fatalf("Zone should not have been re-parsed")
} }
} }
const reloadZoneTest = `miek.nl. 1627 IN SOA linode.atoom.net. miek.miek.nl. 1460175181 14400 3600 604800 14400 const reloadZoneTest = `miek.nl. 1627 IN SOA linode.atoom.net. miek.miek.nl. 1460175181 14400 3600 604800 14400
......
...@@ -166,5 +166,4 @@ func TestHostsInlineParse(t *testing.T) { ...@@ -166,5 +166,4 @@ func TestHostsInlineParse(t *testing.T) {
} }
} }
} }
} }
...@@ -162,5 +162,4 @@ func TestLogParse(t *testing.T) { ...@@ -162,5 +162,4 @@ func TestLogParse(t *testing.T) {
} }
} }
} }
} }
...@@ -50,7 +50,6 @@ func NewRequest(method, url string, m *dns.Msg) (*http.Request, error) { ...@@ -50,7 +50,6 @@ func NewRequest(method, url string, m *dns.Msg) (*http.Request, error) {
default: default:
return nil, fmt.Errorf("method not allowed: %s", method) return nil, fmt.Errorf("method not allowed: %s", method)
} }
} }
// ResponseToMsg converts a http.Response to a dns message. // ResponseToMsg converts a http.Response to a dns message.
...@@ -72,7 +71,6 @@ func RequestToMsg(req *http.Request) (*dns.Msg, error) { ...@@ -72,7 +71,6 @@ func RequestToMsg(req *http.Request) (*dns.Msg, error) {
default: default:
return nil, fmt.Errorf("method not allowed: %s", req.Method) return nil, fmt.Errorf("method not allowed: %s", req.Method)
} }
} }
// requestToMsgPost extracts the dns message from the request body. // requestToMsgPost extracts the dns message from the request body.
......
...@@ -55,7 +55,5 @@ func TestTransferIn(t *testing.T) { ...@@ -55,7 +55,5 @@ func TestTransferIn(t *testing.T) {
} }
} }
} }
} }
} }
...@@ -37,7 +37,6 @@ func TestMetricNaming(t *testing.T) { ...@@ -37,7 +37,6 @@ func TestMetricNaming(t *testing.T) {
t.Fatalf("A slice of Problems indicating any issues found in the metrics stream: %s", problems) t.Fatalf("A slice of Problems indicating any issues found in the metrics stream: %s", problems)
} }
} }
} }
type validMetricWalker struct { type validMetricWalker struct {
......
...@@ -86,5 +86,4 @@ func TestLookupWildcard(t *testing.T) { ...@@ -86,5 +86,4 @@ func TestLookupWildcard(t *testing.T) {
continue continue
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment