mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -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()
|
newError("ip address not in fake dns range, return as is").AtDebug().WriteToLog()
|
||||||
return nil, common.ErrNoClue
|
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,
|
metadataSniffer: false,
|
||||||
}, nil
|
}, 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.")
|
" instead of allowing end user to enable it without special tool and knowledge.")
|
||||||
sb := strings.Builder{}
|
sb := strings.Builder{}
|
||||||
return nil, newError("Cannot load service").Base(developererr).Base(err).Base(newError(sb.String()))
|
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
|
// Using a else here is required to keep msg in scope
|
||||||
config.App = append(config.App, msg...)
|
config.App = append(config.App, msg...)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user