Skip to content

Commit 164f45d

Browse files
committed
TX-16896: remove redundant nil check
1 parent 0cbb0d7 commit 164f45d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/txlib/config/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ points to a section in the root configuration. We return the rest_hostname of
101101
that section. The fallback value is `https://rest.api.transifex.com`
102102
*/
103103
func (cfg *Config) GetActiveHost() *Host {
104-
if cfg.Root.Hosts == nil || len(cfg.Root.Hosts) == 0 ||
105-
cfg.Local == nil {
104+
if len(cfg.Root.Hosts) == 0 || cfg.Local == nil {
106105
return nil
107106
}
108107
activeHostName := cfg.Local.Host

0 commit comments

Comments
 (0)