mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2024-11-27 07:34:05 +00:00
Merge pull request #42 from jeijei4/patch-1
Unused parameter 'num int' in getVal function
This commit is contained in:
commit
e74ba094c9
|
@ -496,7 +496,7 @@ On a side note, if the `// do something else` part is another attempt to mutate
|
||||||
|
|
||||||
```go
|
```go
|
||||||
func getVal(num int) (string, error) {
|
func getVal(num int) (string, error) {
|
||||||
val, err := getStringResult(32)
|
val, err := getStringResult(num)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue