You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by de...@apache.org on 2018/06/26 18:54:52 UTC
[trafficcontrol] 01/15: add missing return after error
This is an automated email from the ASF dual-hosted git repository.
dewrich pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
commit 4c6d7d29b25ebf39f4658a352f4b57dfd8549c3a
Author: Dan Kirkwood <da...@apache.org>
AuthorDate: Thu Jun 21 13:51:00 2018 -0600
add missing return after error
---
traffic_ops/traffic_ops_golang/api/shared_handlers.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/traffic_ops/traffic_ops_golang/api/shared_handlers.go b/traffic_ops/traffic_ops_golang/api/shared_handlers.go
index c6f645c..c1cc8d3 100644
--- a/traffic_ops/traffic_ops_golang/api/shared_handlers.go
+++ b/traffic_ops/traffic_ops_golang/api/shared_handlers.go
@@ -135,6 +135,7 @@ func ReadHandler(typeRef Reader, db *sqlx.DB) http.HandlerFunc {
if err != nil {
log.Errorf("unable to get parameters from request: %s", err)
handleErrs(http.StatusInternalServerError, err)
+ return
}
user, err := auth.GetCurrentUser(ctx)