mirror of https://github.com/laurent22/joplin.git
ReactNativeClient: Fix some typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>pull/494/head
parent
40a34a7c05
commit
feb0c02c9a
|
@ -38,7 +38,7 @@ class FileApiDriverWebDav {
|
||||||
}
|
}
|
||||||
|
|
||||||
statFromResource_(resource, path) {
|
statFromResource_(resource, path) {
|
||||||
// WebDAV implementations are always slighly different from one server to another but, at the minimum,
|
// WebDAV implementations are always slightly different from one server to another but, at the minimum,
|
||||||
// a resource should have a propstat key - if not it's probably an error.
|
// a resource should have a propstat key - if not it's probably an error.
|
||||||
const propStat = this.api().arrayFromJson(resource, ['d:propstat']);
|
const propStat = this.api().arrayFromJson(resource, ['d:propstat']);
|
||||||
if (!Array.isArray(propStat)) throw new Error('Invalid WebDAV resource format: ' + JSON.stringify(resource));
|
if (!Array.isArray(propStat)) throw new Error('Invalid WebDAV resource format: ' + JSON.stringify(resource));
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
const layoutUtils = {};
|
const layoutUtils = {};
|
||||||
|
|
||||||
layoutUtils.size = function(prefered, min, max) {
|
layoutUtils.size = function(preferred, min, max) {
|
||||||
if (prefered < min) return min;
|
if (preferred < min) return min;
|
||||||
if (typeof max !== 'undefined' && prefered > max) return max;
|
if (typeof max !== 'undefined' && preferred > max) return max;
|
||||||
return prefered;
|
return preferred;
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = layoutUtils;
|
module.exports = layoutUtils;
|
|
@ -263,7 +263,7 @@ class Synchronizer {
|
||||||
//
|
//
|
||||||
// TODO: assuming a particular sync target is guaranteed to have accurate timestamps, the driver maybe
|
// TODO: assuming a particular sync target is guaranteed to have accurate timestamps, the driver maybe
|
||||||
// could expose this with a accurateTimestamps() method that returns "true". In that case, the test
|
// could expose this with a accurateTimestamps() method that returns "true". In that case, the test
|
||||||
// could be done using the file timestamp and the potentially unecessary content loading could be skipped.
|
// could be done using the file timestamp and the potentially unnecessary content loading could be skipped.
|
||||||
// OneDrive does not appear to have accurate timestamps as lastModifiedDateTime would occasionally be
|
// OneDrive does not appear to have accurate timestamps as lastModifiedDateTime would occasionally be
|
||||||
// a few seconds ahead of what it was set with setTimestamp()
|
// a few seconds ahead of what it was set with setTimestamp()
|
||||||
remoteContent = await this.api().get(path);
|
remoteContent = await this.api().get(path);
|
||||||
|
@ -567,7 +567,7 @@ class Synchronizer {
|
||||||
// If user has cancelled, don't record the new context (2) so that synchronisation
|
// If user has cancelled, don't record the new context (2) so that synchronisation
|
||||||
// can start again from the previous context (1) next time. It is ok if some items
|
// can start again from the previous context (1) next time. It is ok if some items
|
||||||
// have been synced between (1) and (2) because the loop above will handle the same
|
// have been synced between (1) and (2) because the loop above will handle the same
|
||||||
// items being synced twice as an update. If the local and remote items are indentical
|
// items being synced twice as an update. If the local and remote items are identical
|
||||||
// the update will simply be skipped.
|
// the update will simply be skipped.
|
||||||
if (!hasCancelled) {
|
if (!hasCancelled) {
|
||||||
if (!listResult.hasMore) {
|
if (!listResult.hasMore) {
|
||||||
|
|
Loading…
Reference in New Issue