diff --git a/example_test.go b/example_test.go index 02bb183..a802cf2 100644 --- a/example_test.go +++ b/example_test.go @@ -32,7 +32,9 @@ func Example_config() { // an access token and iniate a Transport that is // authorized and authenticated the retrieved token. var exchangeCode string - fmt.Scan(&exchangeCode) + if _, err = fmt.Scan(&exchangeCode); err != nil { + log.Fatal(err) + } t, err := conf.NewTransportWithCode(exchangeCode) if err != nil { log.Fatal(err)