refacto: Remove overengineered convertAction func
Because it can be simply replaced by a condition. Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
5f67ba2279
commit
fed6459f9d
4 changed files with 1 additions and 15 deletions
|
@ -1 +1 @@
|
|||
🎉 *{{ convertAction .Pool.Coin }}* [#{{ .Block.Number }}]({{ formatBlockURL .Pool.Coin .Block.Hash }}) _{{ printf "%.6f" (convertCurrency .Pool.Coin .Block.Reward) }} {{ upper .Pool.Coin }}_
|
||||
🎉 *{{ if (eq .Pool.Coin "xch") }}Farmed{{ else }}Mined{{ end }}* [#{{ .Block.Number }}]({{ formatBlockURL .Pool.Coin .Block.Hash }}) _{{ printf "%.6f" (convertCurrency .Pool.Coin .Block.Reward) }} {{ upper .Pool.Coin }}_
|
Reference in a new issue