diff options
Diffstat (limited to 'bug/resolver.go')
-rw-r--r-- | bug/resolver.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/bug/resolver.go b/bug/resolver.go deleted file mode 100644 index e7beb0e4..00000000 --- a/bug/resolver.go +++ /dev/null @@ -1,21 +0,0 @@ -package bug - -import ( - "github.com/MichaelMure/git-bug/entity" - "github.com/MichaelMure/git-bug/repository" -) - -var _ entity.Resolver = &SimpleResolver{} - -// SimpleResolver is a Resolver loading Bugs directly from a Repo -type SimpleResolver struct { - repo repository.ClockedRepo -} - -func NewSimpleResolver(repo repository.ClockedRepo) *SimpleResolver { - return &SimpleResolver{repo: repo} -} - -func (r *SimpleResolver) Resolve(id entity.Id) (entity.Interface, error) { - return Read(r.repo, id) -} |