优化代码

This commit is contained in:
boyce
2025-09-23 15:06:57 +08:00
parent 77e2986ffb
commit 2a12d40f7a
3 changed files with 42 additions and 4 deletions

View File

@@ -24,8 +24,9 @@ type Output struct {
func (em *Output) GetName() string {
return "Output"
}
func (em *Output) Exec() (int, error) {
val, ok := em.GetInPortInt(0)
val, ok := em.GetInPortInt(1)
if !ok {
return 0, fmt.Errorf("Output Exec inParam not found")
}