Skip to content

Commit

Permalink
refactor(repositories): remove unused id field of Payload struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Icikowski committed Dec 30, 2022
1 parent e5f76e0 commit d0087ea
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/data/payloads.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit d0087ea

Please sign in to comment.