reason creates a sentence fragment so that the lock reason can be used in a sentence. e.g. "resolved" -> " as RESOLVED"
(reason string)
| 207 | // |
| 208 | // e.g. "resolved" -> " as RESOLVED" |
| 209 | func reason(reason string) string { |
| 210 | result := "" |
| 211 | if reason != "" { |
| 212 | result = fmt.Sprintf(" as %s", strings.ToUpper(reason)) |
| 213 | } |
| 214 | return result |
| 215 | } |
| 216 | |
| 217 | // status creates a string showing the result of a successful lock/unlock that |
| 218 | // is parameterized on a bunch of options. |
no outgoing calls
no test coverage detected