From 2917057b0027bfc98d8079b190c7ab9449aa8fa2 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Wed, 4 Jan 2023 15:37:55 +0800 Subject: [PATCH] Update models/actions/status.go Co-authored-by: delvh --- models/actions/status.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/actions/status.go b/models/actions/status.go index 68566e4fcd..74f78b45eb 100644 --- a/models/actions/status.go +++ b/models/actions/status.go @@ -62,6 +62,7 @@ func (s Status) IsRunning() bool { return s == StatusRunning } +// In returns whether s is one of the given statuses func (s Status) In(statuses ...Status) bool { for _, v := range statuses { if s == v {