mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 16:48:25 +08:00
(fix): repeated condition check
This commit is contained in:
@@ -133,9 +133,6 @@ func configDefault(config ...Config) Config {
|
|||||||
if cfg.Table == "" {
|
if cfg.Table == "" {
|
||||||
cfg.Table = ConfigDefault.Table
|
cfg.Table = ConfigDefault.Table
|
||||||
}
|
}
|
||||||
if cfg.Table == "" {
|
|
||||||
cfg.Table = ConfigDefault.Table
|
|
||||||
}
|
|
||||||
if int(cfg.GCInterval.Seconds()) <= 0 {
|
if int(cfg.GCInterval.Seconds()) <= 0 {
|
||||||
cfg.GCInterval = ConfigDefault.GCInterval
|
cfg.GCInterval = ConfigDefault.GCInterval
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user