kopia lustrzana https://github.com/simonw/datasette
prf: prefer has() to get() for set membership
rodzic
37d7e3f320
commit
8f744e7d0d
|
@ -41,7 +41,7 @@ const datasetteManager = {
|
|||
plugins: new Map(),
|
||||
|
||||
registerPlugin: (name, pluginMetadata) => {
|
||||
if (datasetteManager.plugins.get(name)) {
|
||||
if (datasetteManager.plugins.has(name)) {
|
||||
console.warn(`Warning -> plugin ${name} was redefined`);
|
||||
}
|
||||
datasetteManager.plugins.set(name, pluginMetadata);
|
||||
|
|
Ładowanie…
Reference in New Issue