mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-18 06:57:29 +08:00
优化代码
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user