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:
Dariusz L
2025-06-26 05:03:17 +02:00
parent c149976610
commit 98d5b18422
8 changed files with 26 additions and 155 deletions

View File

@@ -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);