mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
API: Apply "golangci-lint" recommendations #5330
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -73,7 +73,7 @@ func BatchPhotosEdit(router *gin.RouterGroup) {
|
||||
return
|
||||
}
|
||||
|
||||
preloadedPhotos := map[string]*entity.Photo{}
|
||||
var preloadedPhotos map[string]*entity.Photo
|
||||
|
||||
if hydrated, err := query.PhotoPreloadByUIDs(photos.UIDs()); err != nil {
|
||||
log.Errorf("batch: failed to preload photo selection: %s", err)
|
||||
@@ -107,7 +107,7 @@ func BatchPhotosEdit(router *gin.RouterGroup) {
|
||||
// Refresh selected photos from database?
|
||||
if !savedAny {
|
||||
// Don't refresh.
|
||||
} else if photos, count, err = search.BatchPhotos(frm.Photos, s); err != nil {
|
||||
} else if photos, _, err = search.BatchPhotos(frm.Photos, s); err != nil {
|
||||
log.Errorf("batch: %s (refresh selection)", clean.Error(err))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user