Commit 703e094
committed
Refactor: Make the default unit price a constant
Instead of returning directly 299 in case of the tier being undefined, the default unit price is stored in a constant with that name1 parent db44072 commit 703e094
File tree
1 file changed
+2
-1
lines changed- exercises/tiered_pricing/solutions/xetxeberria-ts/src
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
0 commit comments