gcpug / zagane

zagane is a static analysis tool which can find bugs in spanner's code
MIT License
89 stars 15 forks source link

proposal: support for BatchReadOnlyTransaction #37

Closed mtokioka closed 4 years ago

mtokioka commented 4 years ago

This sample code become OK.

package a

import (
    "context"

    "cloud.google.com/go/spanner"
)

func f1(ctx context.Context, client *spanner.Client) {
    ro, _ := client.BatchReadOnlyTransaction(ctx, spanner.StrongRead())
    if ro != nil {
    }
}
tenntenn commented 4 years ago

https://github.com/gostaticanalysis/analysisutil/issues/25