File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 4
4
var DeployPluginBase = require ( 'ember-cli-deploy-plugin' ) ;
5
5
var ScmTable = require ( './lib/scm-table' ) ;
6
6
var LegacyTable = require ( './lib/legacy-table' ) ;
7
- var _ = require ( 'lodash' ) ;
8
7
9
8
module . exports = {
10
9
name : 'ember-cli-deploy-display-revisions' ,
@@ -33,15 +32,17 @@ module.exports = {
33
32
34
33
revisions = revisions . slice ( 0 , this . readConfig ( "amount" ) ) ;
35
34
36
- var hasRevisionData = _ . every ( revisions , 'revisionData' ) ;
35
+ var hasRevisionData = revisions . reduce ( function ( prev , current ) {
36
+ return ! prev ? false : ! ! current . revisionData ;
37
+ } , true ) ;
37
38
38
39
if ( hasRevisionData ) {
39
40
table = new ScmTable ( this , revisions ) ;
40
- table . display ( ) ;
41
41
} else {
42
42
table = new LegacyTable ( this , revisions ) ;
43
- table . display ( ) ;
44
43
}
44
+
45
+ table . display ( ) ;
45
46
}
46
47
} ) ;
47
48
Original file line number Diff line number Diff line change 47
47
"core-object" : " ^2.0.0" ,
48
48
"ember-cli-babel" : " ^5.0.0" ,
49
49
"ember-cli-deploy-plugin" : " ^0.2.3" ,
50
- "lodash" : " ^3.10.1" ,
51
50
"moment" : " 2.10.6"
52
51
},
53
52
"ember-addon" : {
You can’t perform that action at this time.
0 commit comments