Roll back the place of colorFuncForState

This commit is contained in:
Toshiya Doi 2020-04-02 23:58:28 +09:00
parent 0095fe9a13
commit 4c2f15fe37
3 changed files with 17 additions and 17 deletions

View file

@ -75,17 +75,3 @@ func Spinner(w io.Writer) *spinner.Spinner {
s.Writer = w
return s
}
// ColorFuncForState returns a color function for a PR/Issue state
func ColorFuncForState(state string) func(string) string {
switch state {
case "OPEN":
return Green
case "CLOSED":
return Red
case "MERGED":
return Magenta
default:
return nil
}
}