Skip to content

Commit c96b3ee

Browse files
committed
Handle error in airtable.New example
1 parent 83874d9 commit c96b3ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

example_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ func ExampleNew() {
1111
airtableAPIKey := os.Getenv("AIRTABLE_API_KEY")
1212
baseID := "apphllLCpWnySSF7q"
1313

14-
client, _ := airtable.New(airtableAPIKey, baseID)
14+
client, err := airtable.New(airtableAPIKey, baseID)
15+
if err != nil {
16+
panic(err)
17+
}
1518

1619
fmt.Println(client)
1720
}

0 commit comments

Comments
 (0)