Ran formatter and fixed some lint issues

This commit is contained in:
Stash Dev
2019-02-14 14:53:32 -08:00
parent 14df7b0700
commit 1d00b2b36f
97 changed files with 709 additions and 642 deletions

View File

@@ -10,7 +10,9 @@ import (
)
func (s *singleton) Scan() {
if s.Status != Idle { return }
if s.Status != Idle {
return
}
s.Status = Scan
go func() {
@@ -31,7 +33,9 @@ func (s *singleton) Scan() {
}
func (s *singleton) Import() {
if s.Status != Idle { return }
if s.Status != Idle {
return
}
s.Status = Import
go func() {
@@ -46,7 +50,9 @@ func (s *singleton) Import() {
}
func (s *singleton) Export() {
if s.Status != Idle { return }
if s.Status != Idle {
return
}
s.Status = Export
go func() {
@@ -61,7 +67,9 @@ func (s *singleton) Export() {
}
func (s *singleton) Generate(sprites bool, previews bool, markers bool, transcodes bool) {
if s.Status != Idle { return }
if s.Status != Idle {
return
}
s.Status = Generate
qb := models.NewSceneQueryBuilder()
@@ -108,7 +116,7 @@ func (s *singleton) Generate(sprites bool, previews bool, markers bool, transcod
}
func (s *singleton) returnToIdleState() {
if r := recover(); r!= nil {
if r := recover(); r != nil {
logger.Info("recovered from ", r)
}
@@ -116,4 +124,4 @@ func (s *singleton) returnToIdleState() {
instance.Paths.Generated.RemoveTmpDir()
}
s.Status = Idle
}
}