Skip to content

Commit 54821d1

Browse files
committed
rm TODOs
1 parent 3839dbc commit 54821d1

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

internal/handler/handler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ func PreProcess(errPtr *error, info *Info, a ...any) error {
277277
Level: lvl,
278278
})
279279
if ok {
280-
fmter := fmtstore.Formatter()
281-
if fmter != nil { // TODO: check the init order!
282-
info.Format = fmter.Format(funcName)
280+
setFmter := fmtstore.Formatter()
281+
if setFmter != nil {
282+
info.Format = setFmter.Format(funcName)
283283
} else {
284284
info.Format = str.Decamel(funcName)
285285
}

samples/main-db-sample.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ func doDBMain() {
4343

4444
db, from, to := new(Database), new(Account), new(Account)
4545

46-
// --- TODO: play with these lines to simulate different errors:
46+
// --- play with these lines to simulate different errors:
4747
db.errRoll = errRollback
4848
//db.err = errBegin // tx fails
4949
from.balance = 1100 // no enough funds
5050
from.errWithdraw = errWithdraw // withdraw error
5151
to.errDeposit = errDeposit // deposit error
5252
amount := 100 // no enough funds
53-
// --- TODO: simulation variables end
53+
// --- simulation variables end
5454

5555
try.To(db.MoneyTransfer(from, to, amount))
5656

scripts/migrate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ echo "================================="
128128
echo
129129

130130
if [[ $bads != "" ]]; then
131-
echo "====== TODO Summary ====" >&2
131+
echo "====== Summary ====" >&2
132132
echo "Please check the following files before commit:" >&2
133133
echo "" >&2
134134
echo "$bads" | tr " " "\n" >&2

scripts/release-readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ Run the `release.sh` script:
77
```
88

99
Note! The version string format is 'v0.8.0'. Don't forget the v at the
10-
beginning. TODO: update the script.
10+
beginning.
1111

0 commit comments

Comments
 (0)