Check if a hash was supplied to the input so we know if we should calculate it
(hash string)
| 199 | |
| 200 | // Check if a hash was supplied to the input so we know if we should calculate it |
| 201 | func hasHash(hash string) bool { |
| 202 | for _, x := range Hash { |
| 203 | if x == "all" { |
| 204 | return true |
| 205 | } |
| 206 | |
| 207 | if x == hash { |
| 208 | return true |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | return false |
| 213 | } |
no outgoing calls
no test coverage detected