File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,7 @@ export default Route.extend({
45
45
. then ( versions => {
46
46
const latestStableVersion = versions . find ( version => {
47
47
// Find the latest version that is stable AND not-yanked.
48
- if ( ! isUnstableVersion ( version . get ( 'num' ) ) && ! version . get ( 'yanked' ) ) {
49
- return version ;
50
- }
48
+ return ! isUnstableVersion ( version . get ( 'num' ) ) && ! version . get ( 'yanked' ) ;
51
49
} ) ;
52
50
53
51
if ( latestStableVersion == null ) {
@@ -56,9 +54,7 @@ export default Route.extend({
56
54
// we have to fall back to the latest one that is unstable....
57
55
const latestUnyankedVersion = versions . find ( version => {
58
56
// Find the latest version that is not-yanked.
59
- if ( ! version . get ( 'yanked' ) ) {
60
- return version ;
61
- }
57
+ return ! version . get ( 'yanked' ) ;
62
58
} ) ;
63
59
64
60
if ( latestUnyankedVersion == null ) {
You can’t perform that action at this time.
0 commit comments