all: Fix typos found by codespell (#8833)

This commit is contained in:
Dimitri Papadopoulos Orfanos
2023-03-21 08:07:28 +01:00
committed by GitHub
parent bc371eacf6
commit 526e21ae26
14 changed files with 24 additions and 24 deletions
@@ -16,8 +16,8 @@ export class CachingInterceptor implements HttpInterceptor {
constructor(private cache: RequestCacheService) { }
intercept(req: HttpRequest<any>, next: HttpHandler) {
// continue if not cachable.
if (!isCachable(req)) { return next.handle(req); }
// continue if not cacheable.
if (!isCacheable(req)) { return next.handle(req); }
const cachedResponse = this.cache.get(req);
return cachedResponse ?
@@ -25,9 +25,9 @@ export class CachingInterceptor implements HttpInterceptor {
}
}
/** Is this request cachable? */
function isCachable(req: HttpRequest<any>) {
// Only GET requests are cachable
/** Is this request cacheable? */
function isCacheable(req: HttpRequest<any>) {
// Only GET requests are cacheable
return req.method === 'GET';
/*
return req.method === 'GET' &&
@@ -55,4 +55,4 @@ function sendRequest(
}
})
);
}
}
@@ -36,7 +36,7 @@ export class DbCompletionService {
.get<Completion>(this.dbStatusUrl, httpOptions)
.pipe(
map(res => {
// Remove from array in developement
// Remove from array in development
// in-memory-web-api returns arrays
if (!environment.production) {
const a: any = res as any;
@@ -48,4 +48,4 @@ export class DbCompletionService {
})
);
}
}
}
@@ -28,7 +28,7 @@ export class DbStatusService {
.get<Folder.Status>(this.dbStatusUrl, httpOptions)
.pipe(
map(res => {
// Remove from array in developement
// Remove from array in development
// in-memory-web-api returns arrays
if (!environment.production) {
const a: any = res as any;
@@ -40,4 +40,4 @@ export class DbStatusService {
})
);
}
}
}