Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f2e38e2

Browse files
refactor($templateRequest): avoid double calls to $templateCache.put
1 parent d0351c4 commit f2e38e2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ng/templateRequest.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,8 @@ function $TemplateRequestProvider() {
4747

4848
return $http.get(tpl, httpOptions)
4949
.then(function(response) {
50-
var html = response.data;
5150
self.totalPendingRequests--;
52-
$templateCache.put(tpl, html);
53-
return html;
51+
return response.data;
5452
}, handleError);
5553

5654
function handleError() {

0 commit comments

Comments
 (0)