From bbfc846d98dacb0fb40dd9173acfe4070e3e0f62 Mon Sep 17 00:00:00 2001 From: Marc Fisher Date: Wed, 11 Jul 2018 12:44:48 -0700 Subject: [PATCH] Fix some lint errors. (#272) --- go/metadata/metadata.go | 2 ++ go/wtl/service/sauce/connect.go | 1 + 2 files changed, 3 insertions(+) diff --git a/go/metadata/metadata.go b/go/metadata/metadata.go index 0c5337c6..5d3b532f 100644 --- a/go/metadata/metadata.go +++ b/go/metadata/metadata.go @@ -248,6 +248,8 @@ func (e extension) Normalize() error { return nil } +// ExtensionMap returns the Extension field as a map if, when the metadata was read, +// no extension type was specified. func (m *Metadata) ExtensionMap() (map[string]interface{}, bool) { if m.Extension == nil { return nil, false diff --git a/go/wtl/service/sauce/connect.go b/go/wtl/service/sauce/connect.go index 75c793b0..80de42b9 100644 --- a/go/wtl/service/sauce/connect.go +++ b/go/wtl/service/sauce/connect.go @@ -143,6 +143,7 @@ func (c *Connect) monitor() { portpicker.RecycleUnusedPort(c.port) } +// Name is the name of this component used in error and log messages. func (c *Connect) Name() string { return compName }