mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
apply coding style
This commit is contained in:
parent
1e282944a6
commit
8323add330
@ -110,10 +110,9 @@ func newFakeDNSThenOthers(ctx context.Context, fakeDNSSniffer protocolSnifferWit
|
||||
}
|
||||
newError("ip address not in fake dns range, return as is").AtDebug().WriteToLog()
|
||||
return nil, common.ErrNoClue
|
||||
} else {
|
||||
newError("fake dns sniffer did not set address in range option, assume false.").AtWarning().WriteToLog()
|
||||
return nil, common.ErrNoClue
|
||||
}
|
||||
newError("fake dns sniffer did not set address in range option, assume false.").AtWarning().WriteToLog()
|
||||
return nil, common.ErrNoClue
|
||||
},
|
||||
metadataSniffer: false,
|
||||
}, nil
|
||||
|
@ -588,7 +588,7 @@ func (c *Config) Build() (*core.Config, error) {
|
||||
" instead of allowing end user to enable it without special tool and knowledge.")
|
||||
sb := strings.Builder{}
|
||||
return nil, newError("Cannot load service").Base(developererr).Base(err).Base(newError(sb.String()))
|
||||
} else {
|
||||
} else { // nolint: golint
|
||||
// Using a else here is required to keep msg in scope
|
||||
config.App = append(config.App, msg...)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user