mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-22 20:53:40 +09:00
@@ -62,6 +62,7 @@ func (s Status) IsRunning() bool {
|
|||||||
return s == StatusRunning
|
return s == StatusRunning
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// In returns whether s is one of the given statuses
|
||||||
func (s Status) In(statuses ...Status) bool {
|
func (s Status) In(statuses ...Status) bool {
|
||||||
for _, v := range statuses {
|
for _, v := range statuses {
|
||||||
if s == v {
|
if s == v {
|
||||||
|
|||||||
Reference in New Issue
Block a user