Skip to content

Commit 484f298

Browse files
committed
guard fn
1 parent 4b1cb56 commit 484f298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/providers/gcp/function.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func (d *cloudFunctionsProvider) GetResource(ctx context.Context) (*schema.Resou
2727
return nil, fmt.Errorf("could not get functions: %s", err)
2828
}
2929
for _, function := range functions {
30-
if function.HttpsTrigger == nil {
30+
if function == nil || function.HttpsTrigger == nil {
3131
continue
3232
}
3333
funcUrl, err := url.Parse(function.HttpsTrigger.Url)

0 commit comments

Comments
 (0)