From 8dfe7249e015e1a03a911d441cab8c4bb0c7d4c9 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Sat, 10 Feb 2018 10:24:02 +0100 Subject: add tests for container iterator --- headers.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'headers.go') diff --git a/headers.go b/headers.go index 1bc206f..7a6ec16 100644 --- a/headers.go +++ b/headers.go @@ -24,9 +24,6 @@ import ( ) func headersToHTTP(h map[string]string) http.Header { - if h == nil { - return nil - } dest := make(http.Header, len(h)) for k, v := range h { dest.Set(k, v) @@ -35,9 +32,6 @@ func headersToHTTP(h map[string]string) http.Header { } func headersFromHTTP(src http.Header) map[string]string { - if src == nil { - return nil - } h := make(map[string]string, len(src)) for k, v := range src { if len(v) > 0 { -- cgit v1.2.3