Remove ineffectual assignment
@@ -37,7 +37,8 @@ type Backend struct {
// NewBackend creates a new <*Backend> object by the given <*Config>.
func NewBackend(ctx hcl.Body, tc *Config, opts *BackendOptions, log *logrus.Entry) http.RoundTripper {
- logEntry := log
+ var logEntry *logrus.Entry
+
if tc.BackendName != "" {
logEntry = log.WithField("backend", tc.BackendName)
} else {
