Refactor
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
4d11b5354c
commit
7b6712e05a
6 changed files with 8 additions and 8 deletions
|
@ -28,7 +28,7 @@ If -j or --json is added, the results will be in JSON format.`,
|
|||
zets := zet.SearchZets(args[0])
|
||||
|
||||
if jsonOutput {
|
||||
zetList := zet.CreateZetList(zets, false)
|
||||
zetList := zet.NewZetList(zets, false)
|
||||
|
||||
result := zetList.Parse()
|
||||
|
||||
|
@ -40,7 +40,7 @@ If -j or --json is added, the results will be in JSON format.`,
|
|||
|
||||
fmt.Println(json)
|
||||
} else {
|
||||
zetList := zet.CreateZetList(zets)
|
||||
zetList := zet.NewZetList(zets)
|
||||
|
||||
result := zetList.Parse()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue