mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-21 20:52:12 -03:00
Remove redundant comments and clean up logging code
This commit removes unnecessary and redundant comments from multiple JavaScript modules, streamlining the code and improving readability. No functional changes were made; only comment cleanup and minor formatting adjustments.
This commit is contained in:
6
js/db.js
6
js/db.js
@@ -1,12 +1,10 @@
|
||||
import {createModuleLogger} from "./utils/LoggerUtils.js";
|
||||
|
||||
// Inicjalizacja loggera dla modułu db
|
||||
const log = createModuleLogger('db');
|
||||
|
||||
const DB_NAME = 'CanvasNodeDB';
|
||||
const STATE_STORE_NAME = 'CanvasState';
|
||||
const IMAGE_STORE_NAME = 'CanvasImages';
|
||||
const DB_VERSION = 2; // Zwiększono wersję, aby wymusić aktualizację schematu
|
||||
const DB_VERSION = 2;
|
||||
|
||||
let db;
|
||||
|
||||
@@ -21,8 +19,6 @@ let db;
|
||||
function createDBRequest(store, operation, data, errorMessage) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let request;
|
||||
|
||||
// Wybierz odpowiednią operację
|
||||
switch (operation) {
|
||||
case 'get':
|
||||
request = store.get(data);
|
||||
|
||||
Reference in New Issue
Block a user