[pkg/kubelet]: make func a little comfortable

This func has only 1 argument, don't wrap it across multiple lines

Signed-off-by: Zhou Peng <p@ctriple.cn>
This commit is contained in:
Zhou Peng 2020-03-31 16:47:32 +08:00
parent f790f0a93f
commit 930bedf144

View File

@ -128,9 +128,7 @@ func (s *runtimeState) storageErrors() error {
return utilerrors.NewAggregate(errs) return utilerrors.NewAggregate(errs)
} }
func newRuntimeState( func newRuntimeState(runtimeSyncThreshold time.Duration) *runtimeState {
runtimeSyncThreshold time.Duration,
) *runtimeState {
return &runtimeState{ return &runtimeState{
lastBaseRuntimeSync: time.Time{}, lastBaseRuntimeSync: time.Time{},
baseRuntimeSyncThreshold: runtimeSyncThreshold, baseRuntimeSyncThreshold: runtimeSyncThreshold,