Skip to content

Commit 59ce2fe

Browse files
fix: Use SliceStable to sort potential changes (#265)
* fix: Use SliceStable to sort potential changes Fixes golang/go#55009 Co-authored-by: Tim <[email protected]>
1 parent eba6b72 commit 59ce2fe

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.github/workflows/notify.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ name: notify social media
22

33
on:
44
release:
5-
issues:
6-
pull_request:
7-
types: [opened]
5+
issues:
86
issue_comment:
97
discussion:
108
discussion_comment:

.github/workflows/tweet.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
release:
55
issues:
66
types: [opened]
7-
pull_request:
8-
types: [opened]
97
push:
108
branches:
119
- notify # for testing purposes

synthesis/fix/synthesis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ func Cds(sequence string, codontable codon.Table, problematicSequenceFuncs []fun
346346
}
347347

348348
// Sort potential changes by weight
349-
sort.Slice(potentialChanges, func(i, j int) bool {
349+
sort.SliceStable(potentialChanges, func(i, j int) bool {
350350
return weightMap[potentialChanges[i].To] > weightMap[potentialChanges[j].To]
351351
})
352352

0 commit comments

Comments
 (0)