Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 38eca0a

Browse files
committed
Style fixes to $firebaseAuth
1 parent 377155f commit 38eca0a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/FirebaseAuth.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,18 @@
156156

157157
// Helper onAuth() callback method for the two router-related methods.
158158
_routerMethodOnAuthPromise: function(rejectIfAuthDataIsNull) {
159-
var ref = this._ref,
160-
deferred = this._q.defer();
159+
var ref = this._ref;
160+
var deferred = this._q.defer();
161161

162-
function callback (authData){
162+
function callback(authData) {
163163
if (authData !== null) {
164164
deferred.resolve(authData);
165165
} else if (rejectIfAuthDataIsNull) {
166166
deferred.reject("AUTH_REQUIRED");
167167
} else {
168168
deferred.resolve(null);
169169
}
170+
170171
// Turn off this onAuth() callback since we just needed to get the authentication data once.
171172
ref.offAuth(callback);
172173
}

0 commit comments

Comments
 (0)