Clean code improvements.
All checks were successful
Run Tests / test (push) Successful in 9s

This commit is contained in:
2024-04-25 04:41:39 +02:00
parent a23e5f80f0
commit 713f70041b
4 changed files with 56 additions and 37 deletions

View File

@@ -7,7 +7,6 @@ import (
)
type Cliargs struct {
value *big.Int
}
func (arg *Cliargs) Parse() (*big.Int, error) {
@@ -19,10 +18,5 @@ func (arg *Cliargs) Parse() (*big.Int, error) {
if !success {
return nil, errors.New("argument is not an integer")
}
arg.value = num
return num, nil
}
func (arg *Cliargs) GetNumber() *big.Int {
return arg.value
}