Skip to content
This repository was archived by the owner on Dec 1, 2018. It is now read-only.

Commit 1f193f4

Browse files
author
yupengzte
committed
check err
Signed-off-by: yupengzte <[email protected]>
1 parent 34470a2 commit 1f193f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

metrics/sinks/gcm/gcm.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ func CreateGCMSink(uri *url.URL) (core.DataSink, error) {
306306
}
307307

308308
opts, err := url.ParseQuery(uri.RawQuery)
309+
if err != nil {
310+
return nil, err
311+
}
309312

310313
metrics := "all"
311314
if len(opts["metrics"]) > 0 {

0 commit comments

Comments
 (0)