Skip to content

Commit 870232b

Browse files
sanfordsvojtajina
authored andcommitted
style($http): fix a semi-colon
1 parent c31df32 commit 870232b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/ng/http.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ function $HttpProvider() {
222222
* will result in the success callback being called. Note that if the response is a redirect,
223223
* XMLHttpRequest will transparently follow it, meaning that the error callback will not be
224224
* called for such responses.
225-
*
225+
*
226226
* # Calling $http from outside AngularJS
227227
* The `$http` service will not actually send the request until the next `$digest()` is
228228
* executed. Normally this is not an issue, since almost all the time your call to `$http` will
@@ -409,19 +409,20 @@ function $HttpProvider() {
409409
* return responseOrNewPromise
410410
* }
411411
* return $q.reject(rejection);
412-
* };
413-
* }
412+
* }
413+
* };
414414
* });
415415
*
416416
* $httpProvider.interceptors.push('myHttpInterceptor');
417417
*
418418
*
419-
* // register the interceptor via an anonymous factory
419+
* // alternatively, register the interceptor via an anonymous factory
420420
* $httpProvider.interceptors.push(function($q, dependency1, dependency2) {
421421
* return {
422422
* 'request': function(config) {
423423
* // same as above
424424
* },
425+
*
425426
* 'response': function(response) {
426427
* // same as above
427428
* }

0 commit comments

Comments
 (0)