Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tank
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
tank
Commits
9e8871f4
Verified
Commit
9e8871f4
authored
3 months ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
feat: remove unused type & code
parent
27a2c77a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/v1/utils.go
+0
-3
0 additions, 3 deletions
api/v1/utils.go
store/types.go
+0
-8
0 additions, 8 deletions
store/types.go
with
0 additions
and
11 deletions
api/v1/utils.go
+
0
−
3
View file @
9e8871f4
...
...
@@ -35,9 +35,6 @@ func statusCodeFromError(err error) (code int, response ErrorResponse) {
response
=
ErrorResponse
{
Error
:
err
.
Error
()}
switch
err
.
(
type
)
{
case
*
store
.
ErrFileInUse
:
code
=
http
.
StatusConflict
response
.
Detail
=
err
case
store
.
ErrInvalidMetadataField
:
code
=
http
.
StatusBadRequest
case
store
.
ErrInvalidPlaylistEntry
:
...
...
This diff is collapsed.
Click to expand it.
store/types.go
+
0
−
8
View file @
9e8871f4
...
...
@@ -46,14 +46,6 @@ var (
ErrPlaylistHasMultipleNullDurationEntries
=
errors
.
New
(
"playlists may only have one entry without a duration"
)
)
type
ErrFileInUse
struct
{
Playlists
[]
Playlist
`json:"playlists"`
}
func
(
e
*
ErrFileInUse
)
Error
()
string
{
return
fmt
.
Sprintf
(
"the file is still in use by %d playlist(s)"
,
len
(
e
.
Playlists
))
}
type
ErrInvalidMetadataField
string
func
(
e
ErrInvalidMetadataField
)
Error
()
string
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment