summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-11-21 08:52:13 +0800
committerEltrac <hi@guhub.cn>2025-11-21 08:52:13 +0800
commitc2f95c4002c3a3324752b7308c36cd8a0465e9fd (patch)
treef3a924b651cfa105b2dd6ee4e3bac53bad87b581 /main.go
parent4528958c13a5047d1e9e30d266996c93175e3731 (diff)
style: rename vars shorter to be idiomatic and fix typo
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index 352517c..53f25d9 100644
--- a/main.go
+++ b/main.go
@@ -24,11 +24,11 @@ func main() {
pkgName := cmd.Args().First()
// prompt
showLoadingPrompt(fmt.Sprintf("What the heck is \"%s\"", pkgName))
- // search and print
- formulae, cask := GetBrewInfo(pkgName)
- data := UnifyInfo(formulae, cask, pkgName)
+ // search, tidy up, and print
+ formula, cask := GetBrewInfo(pkgName)
+ stat := NewStatistics(formula, cask, pkgName)
hideLoadingPrompt()
- PrintInfo(data)
+ PrintInfo(stat)
return nil
},
}