Skip to content
This repository was archived by the owner on Jun 4, 2019. It is now read-only.

Commit 67760a4

Browse files
committed
Update serverless version check
1 parent 468ed15 commit 67760a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/plugin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ class Plugin {
1111
this.serverless = serverless
1212

1313
// Check if used serverless version is larger or equal the minimum supported version
14-
const unsupportedVersion = cmp(this.serverless.version, MINIMUM_COMPATIBLE_SERVERLESS_VERSION) === -1
15-
if (this.serverless.version && unsupportedVersion) {
14+
if (this.serverless.version && cmp(this.serverless.version, MINIMUM_COMPATIBLE_SERVERLESS_VERSION) === -1) {
1615
this.serverless.cli.log(util.format('Skipping `serverless-dynamodb-ttl` plugin. Please update to serverless `%s` or newer', MINIMUM_COMPATIBLE_SERVERLESS_VERSION))
1716
return
1817
}

0 commit comments

Comments
 (0)