clean up linting

This commit is contained in:
sentriz
2019-06-27 11:45:57 +01:00
parent a3af096de1
commit 4ee0d4c6b1
10 changed files with 26 additions and 37 deletions

View File

@@ -137,10 +137,9 @@ func (s *Scanner) Start() error {
}
// delete folders not on filesystem
var folders []*model.Album
err = s.tx.
s.tx.
Select("id").
Find(&folders).
Error
Find(&folders)
for _, folder := range folders {
_, ok := s.seenFolders[folder.ID]
if !ok {