bebop / poly

A Go package for engineering organisms.
https://pkg.go.dev/github.com/bebop/poly
MIT License
673 stars 73 forks source link

Remove unnecessary conversions #275

Closed matiasinsaurralde closed 2 years ago

matiasinsaurralde commented 2 years ago

Removes a few unnecessary conversions reported by unconvert:

% golangci-lint run -E unconvert ./...
io/gff/gff.go:253:26: unnecessary conversion (unconvert)
        featureStrand := string(feature.Strand)
                               ^
io/genbank/genbank.go:748:30: unnecessary conversion (unconvert)
    baseSequenceLength := string(basePairRegex.FindString(locusString))
                                ^
synthesis/codon/codon.go:426:27: unnecessary conversion (unconvert)
    _ = json.Unmarshal([]byte(file), &codonTable)
gitpod-io[bot] commented 2 years ago