We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cbb0d7 commit 164f45dCopy full SHA for 164f45d
internal/txlib/config/main.go
@@ -101,8 +101,7 @@ points to a section in the root configuration. We return the rest_hostname of
101
that section. The fallback value is `https://rest.api.transifex.com`
102
*/
103
func (cfg *Config) GetActiveHost() *Host {
104
- if cfg.Root.Hosts == nil || len(cfg.Root.Hosts) == 0 ||
105
- cfg.Local == nil {
+ if len(cfg.Root.Hosts) == 0 || cfg.Local == nil {
106
return nil
107
}
108
activeHostName := cfg.Local.Host
0 commit comments