sillygod/cdp-cache

View on GitHub
extends/storage/consul.go

Summary

Maintainability
A
35 mins
Test Coverage
D
60%

Method Storage.Delete has 5 return statements (exceeds 4 allowed).
Open

func (s *Storage) Delete(ctx context.Context, key string) error {
    kv, _, err := s.KV.Get(s.generateKey(key), &api.QueryOptions{RequireConsistent: true})
    if err != nil {
        return fmt.Errorf("unable to get data: %s, key: %s", err.Error(), s.generateKey(key))
    }
Severity: Major
Found in extends/storage/consul.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status