Skip to content

Commit efa64f8

Browse files
committedFeb 13, 2025·
fix: getSettings redundant code
1 parent 61c72d4 commit efa64f8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎lib/api/controllers/collectionController.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,12 @@ class CollectionController extends NativeController {
107107
async getSettings(request) {
108108
const { index, collection } = request.getIndexAndCollection();
109109

110-
const settings = await this.ask(
110+
return this.ask(
111111
"core:storage:public:collection:settings:get",
112112
index,
113113
collection,
114114
{},
115115
);
116-
117-
return settings;
118116
}
119117

120118
/**

0 commit comments

Comments
 (0)
Please sign in to comment.