From d0087ea2dfd37a2b9eaeb54766badcf7d07c55d6 Mon Sep 17 00:00:00 2001 From: Piotr Icikowski Date: Fri, 30 Dec 2022 23:38:33 +0100 Subject: [PATCH] refactor(repositories): remove unused `id` field of `Payload` struct --- src/data/payloads.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/data/payloads.go b/src/data/payloads.go index f518dc4..58fc884 100644 --- a/src/data/payloads.go +++ b/src/data/payloads.go @@ -15,7 +15,6 @@ import ( // Payload represents a single payload item type Payload struct { - id string path string Filename string `json:"filename" yaml:"filename"` Size int64 `json:"size" yaml:"size"` @@ -200,7 +199,6 @@ func (s *PayloadsStore) InsertFile(name string, src io.ReadCloser) (string, erro } if err := s.Insert(id, Payload{ - id: id, path: filename, Filename: name, Size: size, @@ -219,7 +217,6 @@ func (s *PayloadsStore) UpdateFile(id string, name string, src io.ReadCloser) er } if err := s.Update(id, Payload{ - id: id, path: filename, Filename: name, Size: size, @@ -238,7 +235,6 @@ func (s *PayloadsStore) UpsertFile(id string, name string, src io.ReadCloser) er } if err := s.Upsert(id, Payload{ - id: id, path: filename, Filename: filename, Size: size,