+
Skip to content

unclosetx: not detect about nested struct having Spanner's client #46

Open
@iwata

Description

@iwata

unclosetx cannot detect looks like this sample code.

func (h *Handler) fetchUser(ctx context.Context, userID string) (*database.User, error) {
	txn := h.repository.Client.ReadOnlyTransaction() // h.repository.Client is a Spanner client.
	
	user, err := database.FindUser(ctx, txn, userID)
	if err != nil {
		return nil, err
	}
	return user, nil
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载