internal/gitlabnet/lfstransfer/client.go
Method Client.Lock
has 7 return statements (exceeds 4 allowed). Open
Open
func (c *Client) Lock(path, refname string) (*Lock, error) {
var ref *batchRef
if refname != "" {
ref = &batchRef{
Name: refname,
Method Client.Batch
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *Client) Batch(operation string, reqObjects []*BatchObject, ref string, reqHashAlgo string) (*BatchResponse, error) {
// FIXME: This causes tests to fail
// if ref == "" {
// return nil, errors.New("A ref must be specified.")
// }
Method Client.Unlock
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *Client) Unlock(id string, force bool, refname string) (*Lock, error) {
var ref *batchRef
if refname != "" {
ref = &batchRef{
Name: refname,
Method Client.ListLocksVerify
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *Client) ListLocksVerify(path, id, cursor string, limit int, ref string) (*ListLocksVerifyResponse, error) {
url, err := url.Parse(c.href)
if err != nil {
return nil, err
}
FIXME found Open
Open
// FIXME: This causes tests to fail
- Exclude checks