File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 "context"
55 "fmt"
66 "io"
7- "io/ioutil"
87 "sort"
98 "strings"
109 "text/template"
@@ -100,7 +99,7 @@ func makeTemplate(format string) (*template.Template, error) {
10099 }
101100 // we execute the template for an empty message, so as to validate
102101 // a bad template like "{{.badFieldString}}"
103- return tmpl , tmpl .Execute (ioutil .Discard , & eventtypes.Message {})
102+ return tmpl , tmpl .Execute (io .Discard , & eventtypes.Message {})
104103}
105104
106105// rfc3339NanoFixed is similar to time.RFC3339Nano, except it pads nanoseconds
Original file line number Diff line number Diff line change 44 "context"
55 "fmt"
66 "io"
7- "io/ioutil"
87 "regexp"
98 "sort"
109 "strings"
@@ -121,7 +120,7 @@ func needsServerInfo(template string, info info) bool {
121120 }
122121
123122 // This constructs an "info" object that only has the client-side fields.
124- err = tmpl .Execute (ioutil .Discard , sparseInfo {
123+ err = tmpl .Execute (io .Discard , sparseInfo {
125124 ClientInfo : info .ClientInfo ,
126125 ClientErrors : info .ClientErrors ,
127126 })
You can’t perform that action at this time.
0 commit comments