We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以下のログのように、空の場合でもキャッシュと API を呼び出しています。もったいない。
strings.TrimSpace() しても空の場合はストレートに空の文字列を返すべきです。
strings.TrimSpace()
$ echo -n "" | qiitrans ja en ja --debug badger 2021/07/07 02:37:39 INFO: All 2 tables opened in 0s badger 2021/07/07 02:37:39 INFO: Discard stats nextEmptySlot: 0 badger 2021/07/07 02:37:39 INFO: Set nextTxnTs to 2 badger 2021/07/07 02:37:39 INFO: Deleting empty file: /tmp/QiiTrans/000003.vlog badger 2021/07/07 02:37:39 INFO: Lifetime L0 stalled for: 0s badger 2021/07/07 02:37:39 INFO: Level 0 [ ]: NumTables: 02. Size: 584 B of 0 B. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 64 MiB Level 1 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 2 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 3 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 4 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 5 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 6 [B]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level Done [LOG]: JA -> EN: 新規取得: badger 2021/07/07 02:37:41 INFO: All 2 tables opened in 1ms badger 2021/07/07 02:37:41 INFO: Discard stats nextEmptySlot: 0 badger 2021/07/07 02:37:41 INFO: Set nextTxnTs to 2 badger 2021/07/07 02:37:41 INFO: Deleting empty file: /tmp/QiiTrans/000004.vlog badger 2021/07/07 02:37:41 INFO: Lifetime L0 stalled for: 0s badger 2021/07/07 02:37:41 INFO: Level 0 [ ]: NumTables: 03. Size: 876 B of 0 B. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 64 MiB Level 1 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 2 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 3 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 4 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 5 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 6 [B]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level Done badger 2021/07/07 02:37:41 INFO: All 3 tables opened in 0s badger 2021/07/07 02:37:41 INFO: Discard stats nextEmptySlot: 0 badger 2021/07/07 02:37:41 INFO: Set nextTxnTs to 3 badger 2021/07/07 02:37:41 INFO: Deleting empty file: /tmp/QiiTrans/000005.vlog badger 2021/07/07 02:37:41 INFO: Lifetime L0 stalled for: 0s badger 2021/07/07 02:37:41 INFO: Level 0 [ ]: NumTables: 03. Size: 876 B of 0 B. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 64 MiB Level 1 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 2 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 3 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 4 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 5 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 6 [B]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level Done [LOG]: EN -> JA: 新規取得: badger 2021/07/07 02:37:41 INFO: All 3 tables opened in 1ms badger 2021/07/07 02:37:41 INFO: Discard stats nextEmptySlot: 0 badger 2021/07/07 02:37:41 INFO: Set nextTxnTs to 3 badger 2021/07/07 02:37:41 INFO: Deleting empty file: /tmp/QiiTrans/000006.vlog badger 2021/07/07 02:37:41 INFO: Lifetime L0 stalled for: 0s badger 2021/07/07 02:37:41 INFO: Level 0 [ ]: NumTables: 04. Size: 1.1 KiB of 0 B. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 64 MiB Level 1 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 2 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 3 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 4 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 5 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level 6 [B]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB Level Done
The text was updated successfully, but these errors were encountered:
feat: issue #8 再現テスト
6bb7f29
fix: issue #8 空の場合は DB も API も叩かない
f2288ed
Fix issue #8 (#9)
3338a44
* feat: issue #8 再現テスト * fix: issue #8 空の場合は DB も API も叩かない * docs: fix godot * docs: ドキュメントのアップデート
Fixed in PR #9
Sorry, something went wrong.
No branches or pull requests
以下のログのように、空の場合でもキャッシュと API を呼び出しています。もったいない。
strings.TrimSpace()
しても空の場合はストレートに空の文字列を返すべきです。The text was updated successfully, but these errors were encountered: