Code clean-up

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-07-01 10:08:17 +02:00
parent c4328b7728
commit 0f3808c80e

View file

@ -392,7 +392,7 @@ func PhotoFileUngroup(router *gin.RouterGroup) {
return
}
if err := service.Index().MediaFile(f, photoprism.IndexOptions{Rescan: true}, existingPhoto.OriginalName).Error; err != nil {
if err := service.Index().MediaFile(f, photoprism.IndexOptions{Rescan: true}, existingPhoto.OriginalName).Error; err != nil {
log.Errorf("photo: %s", err)
c.AbortWithStatusJSON(http.StatusInternalServerError, ErrSaveFailed)
return