simplify printing logic
This commit is contained in:
parent
d507a6429d
commit
217d71f3ba
|
|
@ -52,15 +52,13 @@ func gcd(cmd *cobra.Command, args []string) {
|
|||
}
|
||||
}
|
||||
|
||||
fmt.Print(&z)
|
||||
if extended {
|
||||
fmt.Print(&z)
|
||||
for _, c := range coeffs {
|
||||
fmt.Printf(" %s", &c)
|
||||
}
|
||||
fmt.Println()
|
||||
} else {
|
||||
fmt.Println(&z)
|
||||
}
|
||||
fmt.Println()
|
||||
}
|
||||
|
||||
// gcdCmd represents the gcd command
|
||||
|
|
|
|||
Loading…
Reference in New Issue