Skip to content

Commit 8afb4c9

Browse files
committed
linter
1 parent 0d21b5e commit 8afb4c9

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

src/common/providers/database.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { firebaseConfig } from '../../config';
2525
import { joinPath, pathParts } from '../../utilities/path';
2626

2727
/**
28-
* Interface representing a Firebase Realtime Database data snapshot.
28+
* Interface representing a Firebase Realtime database data snapshot.
2929
*/
3030
export class DataSnapshot implements firebase.database.DataSnapshot {
3131
public instance: string;
@@ -44,7 +44,7 @@ export class DataSnapshot implements firebase.database.DataSnapshot {
4444

4545
constructor(
4646
data: any,
47-
path?: string, // path will be undefined for the database root
47+
path?: string, // path is undefined for the database root
4848
private app?: firebase.app.App,
4949
instance?: string
5050
) {
@@ -72,7 +72,7 @@ export class DataSnapshot implements firebase.database.DataSnapshot {
7272

7373
/**
7474
* Returns a [`Reference`](/docs/reference/admin/node/admin.database.Reference)
75-
* to the Database location where the triggering write occurred. Has
75+
* to the database location where the triggering write occurred. Has
7676
* full read and write access.
7777
*/
7878
get ref(): firebase.database.Reference {
@@ -92,10 +92,10 @@ export class DataSnapshot implements firebase.database.DataSnapshot {
9292
/**
9393
* The key (last part of the path) of the location of this `DataSnapshot`.
9494
*
95-
* The last token in a Database location is considered its key. For example,
95+
* The last token in a database location is considered its key. For example,
9696
* "ada" is the key for the `/users/ada/` node. Accessing the key on any
97-
* `DataSnapshot` will return the key for the location that generated it.
98-
* However, accessing the key on the root URL of a Database will return `null`.
97+
* `DataSnapshot` returns the key for the location that generated it.
98+
* However, accessing the key on the root URL of a database returns `null`.
9999
*/
100100
get key(): string | null {
101101
const segments = pathParts(this._fullPath());
@@ -111,7 +111,7 @@ export class DataSnapshot implements firebase.database.DataSnapshot {
111111
* return `null`, indicating that the `DataSnapshot` is empty (contains no
112112
* data).
113113
*
114-
* @return The DataSnapshot's contents as a JavaScript value (Object,
114+
* @return The snapshot's contents as a JavaScript value (Object,
115115
* Array, string, number, boolean, or `null`).
116116
*/
117117
val(): any {
@@ -189,13 +189,13 @@ export class DataSnapshot implements firebase.database.DataSnapshot {
189189
* JavaScript object returned by `val()` is not guaranteed to match the ordering
190190
* on the server nor the ordering of `child_added` events. That is where
191191
* `forEach()` comes in handy. It guarantees the children of a `DataSnapshot`
192-
* will be iterated in their query order.
192+
* can be iterated in their query order.
193193
*
194194
* If no explicit `orderBy*()` method is used, results are returned
195195
* ordered by key (unless priorities are used, in which case, results are
196196
* returned by priority).
197197
*
198-
* @param action A function that will be called for each child `DataSnapshot`.
198+
* @param action A function that is called for each child `DataSnapshot`.
199199
* The callback can return `true` to cancel further enumeration.
200200
*
201201
* @return `true` if enumeration was canceled due to your callback
@@ -227,7 +227,7 @@ export class DataSnapshot implements firebase.database.DataSnapshot {
227227
* You can use `hasChildren()` to determine if a `DataSnapshot` has any
228228
* children. If it does, you can enumerate them using `forEach()`. If it
229229
* doesn't, then either this snapshot contains a primitive value (which can be
230-
* retrieved with `val()`) or it is empty (in which case, `val()` will return
230+
* retrieved with `val()`) or it is empty (in which case, `val()` returns
231231
* `null`).
232232
*
233233
* @return `true` if this snapshot has any children; else `false`.

src/utilities/path-pattern.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ class MultiCaptureSegment implements PathSegment {
9898
* @internal
9999
*/
100100
export class PathPattern {
101-
102101
/** @throws on validation error */
103102
static compile(raw: string) {}
104103
private segments: PathSegment[];

0 commit comments

Comments
 (0)