Skip to content
This repository was archived by the owner on Nov 24, 2020. It is now read-only.

Commit f4ad274

Browse files
Remove unnecessary space in object declaration keys
Co-Authored-By: Douglas Gadêlha <dgadelha@users.noreply.github.com>
1 parent 02f0189 commit f4ad274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/target/typescript_nodeserver.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ END
136136
@io << ident ident "let cacheKey: string | null = null, decodedKey: string | null = null, cacheExpirationSeconds: number | null = null, cacheVersion: number | null = null;\n"
137137
@io << ident ident "if (cacheConfig.#{op.pretty_name}) {\n"
138138
@io << ident ident ident "try {\n"
139-
@io << ident ident ident ident "const {key: cacheKey, expirationSeconds: cacheExpirationSeconds, version: cacheVersion} = await cacheConfig.#{op.pretty_name}(#{(["ctx"] + op.args.map(&.name)).join(", ")});\n"
139+
@io << ident ident ident ident "const {key: cacheKey, expirationSeconds: cacheExpirationSeconds, version: cacheVersion} = await cacheConfig.#{op.pretty_name}(#{(["ctx"] + op.args.map(&.name)).join(", ")});\n"
140140
@io << ident ident ident ident "if (!key) throw \"\";\n"
141141
@io << ident ident ident ident "const cacheKeyEncoded = crypto.createHash(\"sha256\").update(JSON.stringify(cacheKey)+ \"-#{op.pretty_name}\").digest(\"hex\").substr(0, 100); decodedKey = JSON.stringify(cacheKey);\n"
142142
@io << ident ident ident ident "const cache = await hook.getCache(cacheKeyEncoded, cacheVersion);console.log(JSON.stringify(cache));\n"

0 commit comments

Comments
 (0)