Reduce nesting in sectors list command
This commit is contained in:
parent
e4044151f0
commit
186c4990dd
@ -389,7 +389,10 @@ var sectorsListCmd = &cli.Command{
|
||||
continue
|
||||
}
|
||||
|
||||
if showRemoved || st.State != api.SectorState(sealing.Removed) {
|
||||
if !showRemoved && st.State == api.SectorState(sealing.Removed) {
|
||||
continue
|
||||
}
|
||||
|
||||
_, inSSet := commitedIDs[s]
|
||||
_, inASet := activeIDs[s]
|
||||
|
||||
@ -511,7 +514,6 @@ var sectorsListCmd = &cli.Command{
|
||||
|
||||
tw.Write(m)
|
||||
}
|
||||
}
|
||||
|
||||
return tw.Flush(os.Stdout)
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user