console: squash golint warnings (#16836)

This commit is contained in:
kiel barry
2018-05-31 04:59:08 -07:00
committed by Felix Lange
parent 0ad32d3be7
commit af28d12847
2 changed files with 4 additions and 2 deletions

View File

@ -73,6 +73,8 @@ type Console struct {
printer io.Writer // Output writer to serialize any display strings to
}
// New initializes a JavaScript interpreted runtime environment and sets defaults
// with the config struct.
func New(config Config) (*Console, error) {
// Handle unset config values gracefully
if config.Prompter == nil {