mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-02 15:50:27 +00:00
linter autofix
This commit is contained in:
parent
4297111ab4
commit
a60047e390
13 changed files with 18 additions and 24 deletions
|
@ -233,7 +233,6 @@ func (ctrl *V1Controller) HandleGetAllCustomFieldValues() errchain.HandlerFunc {
|
||||||
}
|
}
|
||||||
|
|
||||||
return adapters.Query(fn, http.StatusOK)
|
return adapters.Query(fn, http.StatusOK)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// HandleItemsImport godocs
|
// HandleItemsImport godocs
|
||||||
|
|
|
@ -39,7 +39,6 @@ func (ctrl *V1Controller) HandleItemAttachmentCreate() errchain.HandlerFunc {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Err(err).Msg("failed to parse multipart form")
|
log.Err(err).Msg("failed to parse multipart form")
|
||||||
return validate.NewRequestError(errors.New("failed to parse multipart form"), http.StatusBadRequest)
|
return validate.NewRequestError(errors.New("failed to parse multipart form"), http.StatusBadRequest)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
errs := validate.NewFieldErrors()
|
errs := validate.NewFieldErrors()
|
||||||
|
|
|
@ -77,7 +77,6 @@ func TestItemsRepository_RecursiveRelationships(t *testing.T) {
|
||||||
updated, err = tRepos.Items.GetOne(context.Background(), child.ID)
|
updated, err = tRepos.Items.GetOne(context.Background(), child.ID)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
assert.Nil(t, updated.Parent)
|
assert.Nil(t, updated.Parent)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,6 @@ func (r *MaintenanceEntryRepository) GetLog(ctx context.Context, groupID, itemID
|
||||||
maintenanceentry.DateNotNil(),
|
maintenanceentry.DateNotNil(),
|
||||||
maintenanceentry.DateNEQ(time.Time{}),
|
maintenanceentry.DateNEQ(time.Time{}),
|
||||||
))
|
))
|
||||||
|
|
||||||
} else if query.Scheduled {
|
} else if query.Scheduled {
|
||||||
q = q.Where(maintenanceentry.And(
|
q = q.Where(maintenanceentry.And(
|
||||||
maintenanceentry.Or(
|
maintenanceentry.Or(
|
||||||
|
|
|
@ -116,7 +116,6 @@ func TestAuthTokenRepo_PurgeExpiredTokens(t *testing.T) {
|
||||||
assert.NotNil(createdToken)
|
assert.NotNil(createdToken)
|
||||||
|
|
||||||
createdTokens = append(createdTokens, createdToken)
|
createdTokens = append(createdTokens, createdToken)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Purge expired tokens
|
// Purge expired tokens
|
||||||
|
|
|
@ -52,7 +52,6 @@ func init() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Checks a struct for validation errors and returns any errors the occur. This
|
// Checks a struct for validation errors and returns any errors the occur. This
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue