simplify printing logic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user