Skip to content

Commit 14eb21e

Browse files
committed
format
1 parent a8880a1 commit 14eb21e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

index.js

+11-3
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,25 @@ class ServerlessPythonRequirements {
109109
};
110110

111111
const before = () => {
112-
if (arguments[1].functionObj && arguments[1].functionObj.runtime && !arguments[1].functionObj.runtime.startsWith('python'))
112+
if (
113+
arguments[1].functionObj &&
114+
arguments[1].functionObj.runtime &&
115+
!arguments[1].functionObj.runtime.startsWith('python')
116+
)
113117
return;
114118
return BbPromise.bind(this)
115119
.then(pipfileToRequirements)
116120
.then(addVendorHelper)
117121
.then(installAllRequirements)
118122
.then(packRequirements);
119-
}
123+
};
120124

121125
const after = () => {
122-
if (arguments[1].functionObj && arguments[1].functionObj.runtime && !arguments[1].functionObj.runtime.startsWith('python'))
126+
if (
127+
arguments[1].functionObj &&
128+
arguments[1].functionObj.runtime &&
129+
!arguments[1].functionObj.runtime.startsWith('python')
130+
)
123131
return;
124132
return BbPromise.bind(this)
125133
.then(removeVendorHelper)

0 commit comments

Comments
 (0)