Merge pull request #123298 from henry118/spell

Fix func name typo
This commit is contained in:
Kubernetes Prow Robot 2024-06-24 21:01:40 -07:00 committed by GitHub
commit ba19ecb8c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -234,7 +234,7 @@ func (m *managerImpl) start() (chan struct{}, error) {
} }
} }
err = m.aquireInhibitLock() err = m.acquireInhibitLock()
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -287,7 +287,7 @@ func (m *managerImpl) start() (chan struct{}, error) {
m.processShutdownEvent() m.processShutdownEvent()
} else { } else {
m.aquireInhibitLock() _ = m.acquireInhibitLock()
} }
} }
} }
@ -295,7 +295,7 @@ func (m *managerImpl) start() (chan struct{}, error) {
return stop, nil return stop, nil
} }
func (m *managerImpl) aquireInhibitLock() error { func (m *managerImpl) acquireInhibitLock() error {
lock, err := m.dbusCon.InhibitShutdown() lock, err := m.dbusCon.InhibitShutdown()
if err != nil { if err != nil {
return err return err