MOBILE-4653 chore: Mixture of typos

main
Pau Ferrer Ocaña 2024-11-06 15:36:51 +01:00
parent 17115a2ce3
commit efd364f285
5 changed files with 10 additions and 18 deletions

View File

@ -254,7 +254,7 @@ export class AddonModForumHelperProvider {
async deleteNewDiscussionStoredFiles(forumId: number, timecreated: number, siteId?: string): Promise<void> {
const folderPath = await AddonModForumOffline.getNewDiscussionFolder(forumId, timecreated, siteId);
// Ignore any errors, CoreFileProvider.removeDir fails if folder doesn't exist.
// Ignore any errors, CoreFile.removeDir fails if folder doesn't exist.
await CoreUtils.ignoreErrors(CoreFile.removeDir(folderPath));
}
@ -270,7 +270,7 @@ export class AddonModForumHelperProvider {
async deleteReplyStoredFiles(forumId: number, postId: number, siteId?: string, userId?: number): Promise<void> {
const folderPath = await AddonModForumOffline.getReplyFolder(forumId, postId, siteId, userId);
// Ignore any errors, CoreFileProvider.removeDir fails if folder doesn't exist.
// Ignore any errors, CoreFile.removeDir fails if folder doesn't exist.
await CoreUtils.ignoreErrors(CoreFile.removeDir(folderPath));
}

View File

@ -240,7 +240,7 @@ export class AddonModWorkshopHelperProvider {
async deleteSubmissionStoredFiles(workshopId: number, siteId?: string): Promise<void> {
const folderPath = await AddonModWorkshopOffline.getSubmissionFolder(workshopId, siteId);
// Ignore any errors, CoreFileProvider.removeDir fails if folder doesn't exists.
// Ignore any errors, CoreFile.removeDir fails if folder doesn't exists.
await CoreUtils.ignoreErrors(CoreFile.removeDir(folderPath));
}
@ -344,7 +344,7 @@ export class AddonModWorkshopHelperProvider {
async deleteAssessmentStoredFiles(workshopId: number, assessmentId: number, siteId?: string): Promise<void> {
const folderPath = await AddonModWorkshopOffline.getAssessmentFolder(workshopId, assessmentId, siteId);
// Ignore any errors, CoreFileProvider.removeDir fails if folder doesn't exists.
// Ignore any errors, CoreFile.removeDir fails if folder doesn't exists.
await CoreUtils.ignoreErrors(CoreFile.removeDir(folderPath));
}

View File

@ -802,8 +802,8 @@ export class CoreLoginHelperProvider {
loginUrl = CoreUrl.addParamsToUrl(loginUrl, urlParams);
}
// Store the siteurl and passport in CoreConfigProvider for persistence.
// We are "configuring" the app to wait for an SSO. CoreConfigProvider shouldn't be used as a temporary storage.
// Store the siteurl and passport in CoreConfig for persistence.
// We are "configuring" the app to wait for an SSO. CoreConfig shouldn't be used as a temporary storage.
await CoreConfig.set(CoreConstants.LOGIN_LAUNCH_DATA, JSON.stringify(<StoredLoginLaunchData> {
siteUrl: siteUrl,
passport: passport,

View File

@ -34,7 +34,7 @@ export const XAPI_STATE_DELETED = 'STATE_DELETED';
@Injectable({ providedIn: 'root' })
export class CoreXAPIProvider {
static readonly ROOT_CACHE_KEY = 'CoreXAPI:';
protected static readonly ROOT_CACHE_KEY = 'CoreXAPI:';
protected logger = CoreLogger.getInstance('CoreXAPIProvider');

View File

@ -26,11 +26,7 @@ export class CoreSiteInfoCronHandlerService implements CoreCronHandler {
name = 'CoreSiteInfoCronHandler';
/**
* Execute the process.
* Receives the ID of the site affected, undefined for all sites.
*
* @param siteId ID of the site affected, undefined for all sites.
* @returns Promise resolved when done, rejected on failure.
* @inheritdoc
*/
async execute(siteId?: string): Promise<void> {
if (!siteId) {
@ -43,18 +39,14 @@ export class CoreSiteInfoCronHandlerService implements CoreCronHandler {
}
/**
* Returns handler's interval in milliseconds. Defaults to CoreCronDelegateService.DEFAULT_INTERVAL.
*
* @returns Interval time (in milliseconds).
* @inheritdoc
*/
getInterval(): number {
return 10800000; // 3 hours.
}
/**
* Check whether it's a synchronization process or not. True if not defined.
*
* @returns Whether it's a synchronization process or not.
* @inheritdoc
*/
isSync(): boolean {
return false;