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

Commit 99d93d2

Browse files
committed
remove redundant call to ref.ref()
in this case there has already been a check that `set()` exists and is a function
1 parent bab99d9 commit 99d93d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firebase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
}
5353
if( angular.isFunction(ref.set) || !angular.isObject(data) ) {
5454
// this is not a query, just do a flat set
55-
ref.ref().set(data, this._handle(def, ref));
55+
ref.set(data, this._handle(def, ref));
5656
}
5757
else {
5858
var dataCopy = angular.extend({}, data);

0 commit comments

Comments
 (0)