Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cachemoi committed Nov 13, 2023
1 parent 0d107ac commit caef839
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion synthesis/codon/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func ExampleTranslationTable_UpdateWeights() {
// this example is using custom weights for different codons for Arginine. Use this if you would rather use your own
// codon weights, they can also be computed for you with `UpdateWeightsWithSequence`.

table.UpdateWeights([]codon.AminoAcid{
err := table.UpdateWeights([]codon.AminoAcid{
{
Letter: "R",
Codons: []codon.Codon{
Expand All @@ -53,6 +53,9 @@ func ExampleTranslationTable_UpdateWeights() {
},
},
})
if err != nil {
fmt.Println("Could not update weights in example")
}

optimizedSequence, _ := table.OptimizeSequence(gfpTranslation, 1)

Expand Down

0 comments on commit caef839

Please sign in to comment.