mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
opslog: remove unneeded nil check
This commit is contained in:
@@ -394,7 +394,7 @@ func (manager *SOpsLogManager) LogEvent(model IModel, action string, notes inter
|
||||
}
|
||||
opslog.SetModelManager(OpsLog, opslog)
|
||||
|
||||
if virtualModel, ok := model.(IVirtualModel); ok && virtualModel != nil {
|
||||
if virtualModel, ok := model.(IVirtualModel); ok {
|
||||
ownerId := virtualModel.GetOwnerId()
|
||||
if ownerId != nil {
|
||||
opslog.OwnerProjectId = ownerId.GetProjectId()
|
||||
|
||||
Reference in New Issue
Block a user