mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-07-09 14:31:25 +08:00
fix: remove redundant configuration call in Add function to config parsers correctly
This commit is contained in:
@@ -30,7 +30,6 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func Add(p ...parser.Parser) {
|
func Add(p ...parser.Parser) {
|
||||||
configOnce.Do(configParsers)
|
|
||||||
mu.Lock()
|
mu.Lock()
|
||||||
defer mu.Unlock()
|
defer mu.Unlock()
|
||||||
parsers = append(parsers, p...)
|
parsers = append(parsers, p...)
|
||||||
|
|||||||
Reference in New Issue
Block a user