func (ds *DistributionScanner) parse(buff *bytes.Buffer) *claircore.Distribution {
	for _, ur := range oracleRegexes {
		if ur.regexp.Match(buff.Bytes()) {
			return releaseToDist(ur.release)
		}
	}
	return nil
}
// parse attempts to match all Oracle release regexp and returns the associated
// distribution if it exists.
//
// separated to it's own method to aide testing.
parse attempts to match all Oracle release regexp and returns the associated
distribution if it exists.

separated to it's own method to aide testing.
// parse attempts to match all Oracle release regexp and returns the associated // distribution if it exists . // // separated to it ' s own method to aide testing .
func (ds *DistributionScanner) parse(buff *bytes.Buffer) *claircore.Distribution {
	for _, ur := range oracleRegexes {
		if ur.regexp.Match(buff.Bytes()) {
			return releaseToDist(ur.release)
		}
	}
	return nil
}
func ( ds * DistributionScanner ) parse ( buff * bytes . Buffer ) * claircore . Distribution { for _ , ur := range oracleRegexes { if ur . regexp . Match ( buff . Bytes ( ) ) { return releaseToDist ( ur . release ) } } return nil }
parse attempts to match all Oracle release regexp and returns the associated
distribution if it exists.
parse attempts to match all Oracle release regexp and returns the associated distribution if it exists .