From c58fcf23e28cd2adc5587138474890a7549c749d Mon Sep 17 00:00:00 2001 From: i9 Date: Wed, 29 Jan 2025 19:39:47 +0100 Subject: [PATCH] (fix): repeated condition check --- postgres/config.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/postgres/config.go b/postgres/config.go index f78650fc..aecbfe97 100644 --- a/postgres/config.go +++ b/postgres/config.go @@ -133,9 +133,6 @@ func configDefault(config ...Config) Config { if cfg.Table == "" { cfg.Table = ConfigDefault.Table } - if cfg.Table == "" { - cfg.Table = ConfigDefault.Table - } if int(cfg.GCInterval.Seconds()) <= 0 { cfg.GCInterval = ConfigDefault.GCInterval }