Skip to content

Commit 72c3643

Browse files
committed
feat: replace indexOf with startsWith
1 parent c98bb8a commit 72c3643

File tree

1 file changed

+1
-1
lines changed
  • lib/plugins/aws/custom-resources

1 file changed

+1
-1
lines changed

lib/plugins/aws/custom-resources/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ async function addCustomResourceToService(awsProvider, resourceName, iamRoleStat
164164

165165
let runtimeVersion = 'nodejs18.x';
166166
const providerRuntime = awsProvider.getRuntime();
167-
if (providerRuntime.indexOf('nodejs') !== -1) {
167+
if (providerRuntime.startsWith('nodejs')) {
168168
runtimeVersion = providerRuntime;
169169
}
170170

0 commit comments

Comments
 (0)