mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2024-11-23 14:14:05 +00:00
Unused parameter 'num int' in getVal function
Fixed unused parameter 'num int' in getVal function in "Variable scope" section.
This commit is contained in:
parent
c281014dfa
commit
35f1422e0f
|
@ -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