File tree 1 file changed +4
-10
lines changed
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -43,23 +43,17 @@ export default Route.extend({
43
43
crate
44
44
. get ( 'versions' )
45
45
. then ( versions => {
46
- const latestStableVersion = versions . find ( version => {
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
- }
51
- } ) ;
48
+ ! isUnstableVersion ( version . get ( 'num' ) ) && ! version . get ( 'yanked' ) ) ;
52
49
53
50
if ( latestStableVersion == null ) {
54
51
// Cannot find any version that is stable AND not-yanked.
55
52
// The fact that "maxVersion" itself cannot be found means that
56
53
// we have to fall back to the latest one that is unstable....
57
- const latestUnyankedVersion = versions . find ( version => {
54
+ const latestUnyankedVersion = versions . find ( version =>
58
55
// Find the latest version that is not-yanked.
59
- if ( ! version . get ( 'yanked' ) ) {
60
- return version ;
61
- }
62
- } ) ;
56
+ ! version . get ( 'yanked' ) ) ;
63
57
64
58
if ( latestUnyankedVersion == null ) {
65
59
// There's not even any unyanked version...
You can’t perform that action at this time.
0 commit comments