mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
cosmetics
This commit is contained in:
@@ -138,10 +138,10 @@ func Migrate2(bboltDB, jsonDB TorrServerDB) error {
|
||||
if err = json.Unmarshal(b, &objectB); err == nil {
|
||||
return reflect.DeepEqual(objectA, objectB), nil
|
||||
} else {
|
||||
err = fmt.Errorf("Error unmashalling B: %s", err.Error())
|
||||
err = fmt.Errorf("error unmashalling B: %s", err.Error())
|
||||
}
|
||||
} else {
|
||||
err = fmt.Errorf("Error unmashalling A: %s", err.Error())
|
||||
err = fmt.Errorf("error unmashalling A: %s", err.Error())
|
||||
}
|
||||
return false, err
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package settings
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"sort"
|
||||
@@ -33,7 +32,7 @@ func (v *XPathDBRouter) RegisterRoute(db TorrServerDB, xPath string) error {
|
||||
newRoute := v.xPathToRoute(xPath)
|
||||
|
||||
if slices.Contains(v.routes, newRoute) {
|
||||
return errors.New(fmt.Sprintf("route \"%s\" already in routing table", newRoute))
|
||||
return fmt.Errorf("route \"%s\" already in routing table", newRoute)
|
||||
}
|
||||
|
||||
// First DB becomes Default DB with default route
|
||||
|
||||
Reference in New Issue
Block a user