From 264f6a17ebb6a289bf7b87c684f091217b87829c Mon Sep 17 00:00:00 2001 From: vbetsch Date: Wed, 1 Jul 2026 00:15:36 +0200 Subject: [PATCH] style: format with prettier --- src/cypher.ts | 2 +- src/index.ts | 2 +- tests/cypher.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cypher.ts b/src/cypher.ts index dc4d960..5f65d0b 100644 --- a/src/cypher.ts +++ b/src/cypher.ts @@ -61,7 +61,7 @@ export class Cypher { for (let i = 0; i < message.length; i++) { const char: string = message.charAt(i); const index: number = dictSource.indexOf(char); - if(!dictTarget[index]) continue; + if (!dictTarget[index]) continue; result += dictTarget[index]; } return result; diff --git a/src/index.ts b/src/index.ts index 4121ad7..166ade3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import {Cypher} from "@src/cypher"; +import { Cypher } from '@src/cypher'; console.log('Hello World!'); const cypher: Cypher = new Cypher(); diff --git a/tests/cypher.test.ts b/tests/cypher.test.ts index bf21c57..02075cb 100644 --- a/tests/cypher.test.ts +++ b/tests/cypher.test.ts @@ -1,4 +1,4 @@ -import {Cypher} from '@src/cypher'; +import { Cypher } from '@src/cypher'; describe('Cypher', () => { it('should be OK', () => {