Merge pull request #89681 from iobuf/cleanup-kubelet

[pkg/kubelet]: make func a little comfortable
This commit is contained in:
Kubernetes Prow Robot 2020-05-16 07:35:36 -07:00 committed by GitHub
commit ac5a6aced2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,