mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
Omit redundant control flow
This commit is contained in:
committed by
GitHub
parent
c9829910f2
commit
fd0223f2ea
@@ -4,8 +4,9 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
bolt "go.etcd.io/bbolt"
|
|
||||||
"server/log"
|
"server/log"
|
||||||
|
|
||||||
|
bolt "go.etcd.io/bbolt"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TDB struct {
|
type TDB struct {
|
||||||
@@ -99,7 +100,6 @@ func (v *TDB) Set(xpath, name string, value []byte) {
|
|||||||
log.TLogln("value:", value)
|
log.TLogln("value:", value)
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *TDB) List(xpath string) []string {
|
func (v *TDB) List(xpath string) []string {
|
||||||
@@ -173,5 +173,4 @@ func (v *TDB) Rem(xpath, name string) {
|
|||||||
log.TLogln("Error rem sets", xpath+"/"+name, ", error:", err)
|
log.TLogln("Error rem sets", xpath+"/"+name, ", error:", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -211,5 +211,5 @@ func streamNoAuth(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
c.Header("WWW-Authenticate", "Basic realm=Authorization Required")
|
c.Header("WWW-Authenticate", "Basic realm=Authorization Required")
|
||||||
c.AbortWithStatus(http.StatusUnauthorized)
|
c.AbortWithStatus(http.StatusUnauthorized)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user