From 283c86bb43f2305c6c292d39dbb624478ce72a4c Mon Sep 17 00:00:00 2001 From: Tristav <124001124+Pricstas@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:36:03 +0100 Subject: [PATCH] multi: fix typos --- app/src/__tests__/util/appStorage.spec.ts | 2 +- app/src/__tests__/util/log.spec.ts | 8 ++++---- app/src/store/views/appView.ts | 2 +- autopilotserver/client.go | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/__tests__/util/appStorage.spec.ts b/app/src/__tests__/util/appStorage.spec.ts index c564ac8f0..d68909ef4 100644 --- a/app/src/__tests__/util/appStorage.spec.ts +++ b/app/src/__tests__/util/appStorage.spec.ts @@ -38,7 +38,7 @@ describe('appStorage util', () => { expect(data).toBeUndefined(); }); - it('should save an value to sessionStorage', () => { + it('should save a value to sessionStorage', () => { appStorage.setSession(key, 'test-value'); const value = sessionStorage.getItem(key); diff --git a/app/src/__tests__/util/log.spec.ts b/app/src/__tests__/util/log.spec.ts index ffd5018ef..430c013ba 100644 --- a/app/src/__tests__/util/log.spec.ts +++ b/app/src/__tests__/util/log.spec.ts @@ -60,7 +60,7 @@ describe('log Util', () => { expect(debugMock).toBeCalledWith('[warn] sample message'); }); - it('should output a error log message', () => { + it('should output an error log message', () => { log.error('sample message'); expect(debugMock).toBeCalledWith('[error] sample message'); }); @@ -84,7 +84,7 @@ describe('log Util', () => { expect(debugMock).toBeCalledWith('[warn] sample message'); }); - it('should output a error log message', () => { + it('should output an error log message', () => { log.error('sample message'); expect(debugMock).toBeCalledWith('[error] sample message'); }); @@ -108,7 +108,7 @@ describe('log Util', () => { expect(debugMock).toBeCalledWith('[warn] sample message'); }); - it('should output a error log message', () => { + it('should output an error log message', () => { log.error('sample message'); expect(debugMock).toBeCalledWith('[error] sample message'); }); @@ -132,7 +132,7 @@ describe('log Util', () => { expect(debugMock).not.toBeCalledWith('[warn] sample message'); }); - it('should output a error log message', () => { + it('should output an error log message', () => { log.error('sample message'); expect(debugMock).toBeCalledWith('[error] sample message'); }); diff --git a/app/src/store/views/appView.ts b/app/src/store/views/appView.ts index 152ae10f3..32063cf64 100644 --- a/app/src/store/views/appView.ts +++ b/app/src/store/views/appView.ts @@ -182,7 +182,7 @@ export default class AppView { this._store.log.info('Switch to Setting screen', name); } - /** adds a alert to the store */ + /** adds an alert to the store */ notify(message: string, title?: string, type: Alert['type'] = 'error') { const alert: Alert = { id: Date.now(), type, message, title }; if (type === 'success') alert.ms = 3000; diff --git a/autopilotserver/client.go b/autopilotserver/client.go index e98a9ee21..8abf1cce6 100644 --- a/autopilotserver/client.go +++ b/autopilotserver/client.go @@ -103,7 +103,7 @@ type featurePerms struct { sync.Mutex } -// NewClient returns a autopilot-server client. +// NewClient returns an autopilot-server client. func NewClient(cfg *Config) (Autopilot, error) { var err error cfg.DialOpts, err = getAutopilotServerDialOpts(