[#1608] neofs-adm: Print info about already performed steps

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-07-18 17:52:41 +03:00 committed by fyrchik
parent 5e1636e50c
commit 59d08b8dae

View file

@ -30,6 +30,7 @@ func (c *initializeContext) registerCandidates() error {
if res.State == vmstate.Halt.String() && len(res.Stack) > 0 {
arr, ok := res.Stack[0].Value().([]stackitem.Item)
if ok && len(arr) > 0 {
c.Command.Println("Candidates are already registered.")
return nil
}
}