Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Commit 4ce264c

Browse files
committed
feat: remove default value of PlainStore#get
1 parent e52c092 commit 4ce264c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/store/PlainStore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ class PlainStore {
33
this._store = {}
44
}
55

6-
get(key, default_value = null) {
7-
return this._store[key] || default_value
6+
get(key) {
7+
return this._store[key]
88
}
99

1010
set(key, value) {

0 commit comments

Comments
 (0)