824 if err == nil {
825 state.tagWV = true
826 }
827 case strings.HasPrefix(line, "#"):828 // comments are ignored
829 }
830 return err
439 state.variant.HDCPLevel = v
440 }
441 }
442 case strings.HasPrefix(line, "#"):443 // comments are ignored
444 }
445 return err
Return value of a pure function the value should always be handled else, calling the function is pointless. If the return value is not required, it is recommended to remove the function call.
strings.Replace("", "", "", 1) // return value is discarded
f := foo(1)
f := foo(1)