@@ -80,21 +80,21 @@ class ServerlessPythonRequirements {
80
80
} ;
81
81
82
82
const before = ( ) => BbPromise . bind ( this )
83
- . then ( pipfileToRequirements . bind ( this ) )
84
- . then ( addVendorHelper . bind ( this ) )
85
- . then ( installRequirements . bind ( this ) )
86
- . then ( packRequirements . bind ( this ) )
87
- . then ( linkRequirements . bind ( this ) ) ;
83
+ . then ( pipfileToRequirements )
84
+ . then ( addVendorHelper )
85
+ . then ( installRequirements )
86
+ . then ( packRequirements )
87
+ . then ( linkRequirements ) ;
88
88
89
89
const after = ( ) => BbPromise . bind ( this )
90
- . then ( removeVendorHelper . bind ( this ) )
91
- . then ( unlinkRequirements . bind ( this ) ) ;
90
+ . then ( removeVendorHelper )
91
+ . then ( unlinkRequirements ) ;
92
92
93
93
const invalidateCaches = ( ) => {
94
94
if ( this . options . invalidateCaches ) {
95
95
return BbPromise . bind ( this )
96
- . then ( cleanup . bind ( this ) )
97
- . then ( removeVendorHelper . bind ( this ) ) ;
96
+ . then ( cleanup )
97
+ . then ( removeVendorHelper ) ;
98
98
}
99
99
return BbPromise . resolve ( ) ;
100
100
} ;
@@ -106,13 +106,13 @@ class ServerlessPythonRequirements {
106
106
'before:deploy:function:packageFunction' : before ,
107
107
'after:deploy:function:packageFunction' : after ,
108
108
'requirements:install:install' : ( ) => BbPromise . bind ( this )
109
- . then ( pipfileToRequirements . bind ( this ) )
110
- . then ( addVendorHelper . bind ( this ) )
111
- . then ( installRequirements . bind ( this ) )
112
- . then ( packRequirements . bind ( this ) ) ,
109
+ . then ( pipfileToRequirements )
110
+ . then ( addVendorHelper )
111
+ . then ( installRequirements )
112
+ . then ( packRequirements ) ,
113
113
'requirements:clean:clean' : ( ) => BbPromise . bind ( this )
114
- . then ( cleanup . bind ( this ) )
115
- . then ( removeVendorHelper . bind ( this ) ) ,
114
+ . then ( cleanup )
115
+ . then ( removeVendorHelper ) ,
116
116
} ;
117
117
}
118
118
}
0 commit comments