Code clean-up (make fmt)

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2019-12-28 20:39:51 +01:00
parent ca8cfffc24
commit fe705bb512
6 changed files with 20 additions and 22 deletions

View file

@ -21,7 +21,6 @@ ORDER BY loc_country, album_name, taken_year;
*/
// Photo location
type Location struct {
ID uint64

View file

@ -86,6 +86,7 @@ func TestOSM_State(t *testing.T) {
assert.Equal(t, "Berlin", l.State())
})
}
/*
func TestOSM_City(t *testing.T) {
t.Run("Berlin", func(t *testing.T) {

View file

@ -6,9 +6,9 @@ import (
"strings"
"testing"
"github.com/photoprism/photoprism/internal/colors"
"github.com/photoprism/photoprism/internal/config"
"github.com/stretchr/testify/assert"
"github.com/photoprism/photoprism/internal/colors"
)
func TestMediaFile_Colors_Testdata(t *testing.T) {

View file

@ -12,8 +12,6 @@ type CategoryLabel struct {
func (s *Repo) CategoryLabels(limit, offset int) (results []CategoryLabel) {
q := s.db.NewScope(nil).DB()
// q.LogMode(true)
q = q.Table("categories").
Select("label_name AS name").
Joins("JOIN labels l ON categories.category_id = l.id").