summaryrefslogtreecommitdiff
path: root/internal/service
diff options
context:
space:
mode:
Diffstat (limited to 'internal/service')
-rw-r--r--internal/service/import.go4
-rw-r--r--internal/service/tag_test.go10
2 files changed, 8 insertions, 6 deletions
diff --git a/internal/service/import.go b/internal/service/import.go
index dde06b9..90fa4b1 100644
--- a/internal/service/import.go
+++ b/internal/service/import.go
@@ -18,7 +18,9 @@ import (
// fetching an episode enclosure).
func ImportMediaFile(
ctx context.Context,
- store interface{ UpdateMedia(ctx context.Context, media *model.Media) error },
+ store interface {
+ UpdateMedia(ctx context.Context, media *model.Media) error
+ },
media *model.Media,
prober probe.Prober,
thumbGen thumb.Generator,
diff --git a/internal/service/tag_test.go b/internal/service/tag_test.go
index 7a87300..f198c89 100644
--- a/internal/service/tag_test.go
+++ b/internal/service/tag_test.go
@@ -13,11 +13,11 @@ func TestTagService_AssignTag(t *testing.T) {
ctx := context.Background()
tests := []struct {
- name string
- tagExists bool
- createErr error
- assignErr error
- wantErr bool
+ name string
+ tagExists bool
+ createErr error
+ assignErr error
+ wantErr bool
}{
{
name: "existing tag",