From 63dfbbef3dfcebacb926187ff36040b8d6e1c53f Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Tue, 13 Aug 2024 06:18:38 +0000 Subject: [PATCH] update cache.gleam --- sdk/gleam/demo/src/fluentci/cache.gleam | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sdk/gleam/demo/src/fluentci/cache.gleam b/sdk/gleam/demo/src/fluentci/cache.gleam index cad6a1e..81b0a82 100644 --- a/sdk/gleam/demo/src/fluentci/cache.gleam +++ b/sdk/gleam/demo/src/fluentci/cache.gleam @@ -3,15 +3,8 @@ import gleam/javascript/promise.{type Promise} pub type Cache @external(javascript, "../fluentci.mjs", "id") -pub fn id_(cache: Cache) -> Promise(String) +pub fn id(cache: Cache) -> Promise(String) @external(javascript, "../fluentci.mjs", "key") -pub fn key_(cache: Cache) -> Promise(String) +pub fn key(cache: Cache) -> Promise(String) -pub fn id(cache: Cache) -> Promise(String) { - id_(cache) -} - -pub fn key(cache: Cache) -> Promise(String) { - key_(cache) -}