mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-03-08 15:25:37 +08:00
优化代码
This commit is contained in:
@@ -293,7 +293,7 @@ func (this *NSNodeDAO) FindNodeInstallStatus(tx *dbs.Tx, nodeId int64) (*NodeIns
|
||||
}
|
||||
|
||||
installStatus := node.(*NSNode).InstallStatus
|
||||
isInstalled := node.(*NSNode).IsInstalled == 1
|
||||
isInstalled := node.(*NSNode).IsInstalled
|
||||
if len(installStatus) == 0 {
|
||||
return NewNodeInstallStatus(), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user