mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2025-04-18 15:23:36 +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
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@ On a side note, if the `// do something else` part is another attempt to mutate
|
|||
|
||||
```go
|
||||
func getVal(num int) (string, error) {
|
||||
val, err := getStringResult(32)
|
||||
val, err := getStringResult(num)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue