[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: fix build
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: fix build |
Date: |
Mon, 28 Aug 2023 16:16:39 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 8941f29cb fix build
8941f29cb is described below
commit 8941f29cb457f86235b73f125e77a88cb762f353
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Aug 28 11:16:28 2023 -0300
fix build
---
packages/taler-harness/src/index.ts | 2 +-
packages/taler-util/src/talerconfig.ts | 8 ++++++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/packages/taler-harness/src/index.ts
b/packages/taler-harness/src/index.ts
index 841e17dc7..0efaea9ad 100644
--- a/packages/taler-harness/src/index.ts
+++ b/packages/taler-harness/src/index.ts
@@ -196,7 +196,7 @@ configCli
res = config.getPath(args.get.section, args.get.option);
}
if (res.isDefined()) {
- console.log(res.value);
+ console.log(res.getValue());
} else {
console.warn("not found");
process.exit(1);
diff --git a/packages/taler-util/src/talerconfig.ts
b/packages/taler-util/src/talerconfig.ts
index 098f5f9a4..e9eb71279 100644
--- a/packages/taler-util/src/talerconfig.ts
+++ b/packages/taler-util/src/talerconfig.ts
@@ -82,7 +82,7 @@ export class ConfigValue<T> {
private optionName: string,
private value: string | undefined,
private converter: (x: string) => T,
- ) {}
+ ) { }
required(): T {
if (this.value == undefined) {
@@ -112,6 +112,10 @@ export class ConfigValue<T> {
isDefined(): boolean {
return this.value !== undefined;
}
+
+ getValue(): string | undefined {
+ return this.value
+ }
}
/**
@@ -245,7 +249,7 @@ function globMatch(pattern: string, str: string): boolean {
/* Backtrack position in pattern */
let patBt = -1;
- for (;;) {
+ for (; ;) {
if (pattern[patPos] === "*") {
strBt = strPos;
patBt = patPos++;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: fix build,
gnunet <=