You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ra...@apache.org on 2019/01/31 17:53:48 UTC
[trafficcontrol] branch master updated: Fix lib/go-tc missing
return (#3289)
This is an automated email from the ASF dual-hosted git repository.
rawlin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new d6fb523 Fix lib/go-tc missing return (#3289)
d6fb523 is described below
commit d6fb52369c92fe5e9f96006ddf109ad052f4814b
Author: Robert Butts <ro...@users.noreply.github.com>
AuthorDate: Thu Jan 31 10:53:44 2019 -0700
Fix lib/go-tc missing return (#3289)
---
lib/go-tc/parameters.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/go-tc/parameters.go b/lib/go-tc/parameters.go
index a383f08..1c147ce 100644
--- a/lib/go-tc/parameters.go
+++ b/lib/go-tc/parameters.go
@@ -105,7 +105,7 @@ type ProfileParametersByNamePost []ProfileParameterByNamePost
func (pp *ProfileParametersByNamePost) UnmarshalJSON(bts []byte) error {
bts = bytes.TrimLeft(bts, " \n\t\r")
if len(bts) == 0 {
- errors.New("no body")
+ return errors.New("no body")
}
if bts[0] == '[' {
ppArr := []ProfileParameterByNamePost{}