(segments []string, index int)
| 239 | } |
| 240 | |
| 241 | func pluginVersionSegment(segments []string, index int) (int64, bool) { |
| 242 | if index >= len(segments) { |
| 243 | return 0, true |
| 244 | } |
| 245 | number, errParse := strconv.ParseInt(segments[index], 10, 64) |
| 246 | if errParse != nil || number < 0 { |
| 247 | return 0, false |
| 248 | } |
| 249 | return number, true |
| 250 | } |
| 251 | |
| 252 | func cleanupUnselectedPluginFiles(root string, loaded []pluginFile) error { |
| 253 | if len(loaded) == 0 { |
no outgoing calls
no test coverage detected