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: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2020-11-11 18:45:01 +01:00
committed by GitHub
parent 4b87be2a0e
commit 9178f9d1ee
9 changed files with 0 additions and 11 deletions

View File

@@ -51,7 +51,6 @@ func TestWatcher(t *testing.T) {
if _, ok := a.Zones.Z["example.org."]; !ok {
t.Errorf("Expected %q to still be there.", "example.org.")
}
}
func TestSymlinks(t *testing.T) {

View File

@@ -27,5 +27,4 @@ func TestType(t *testing.T) {
t.Errorf("Test %d: Expected what %v, but got %v", i, tc.expectedType, what)
}
}
}

View File

@@ -76,7 +76,6 @@ func TestZoneReloadSOAChange(t *testing.T) {
if err == nil {
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

View File

@@ -166,5 +166,4 @@ func TestHostsInlineParse(t *testing.T) {
}
}
}
}

View File

@@ -162,5 +162,4 @@ func TestLogParse(t *testing.T) {
}
}
}
}

View File

@@ -50,7 +50,6 @@ func NewRequest(method, url string, m *dns.Msg) (*http.Request, error) {
default:
return nil, fmt.Errorf("method not allowed: %s", method)
}
}
// ResponseToMsg converts a http.Response to a dns message.
@@ -72,7 +71,6 @@ func RequestToMsg(req *http.Request) (*dns.Msg, error) {
default:
return nil, fmt.Errorf("method not allowed: %s", req.Method)
}
}
// requestToMsgPost extracts the dns message from the request body.

View File

@@ -55,7 +55,5 @@ func TestTransferIn(t *testing.T) {
}
}
}
}
}

View File

@@ -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)
}
}
}
type validMetricWalker struct {

View File

@@ -86,5 +86,4 @@ func TestLookupWildcard(t *testing.T) {
continue
}
}
}