mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-17 14:52:32 +00:00
Address following rules
- @typescript-eslint/no-redundant-type-constituents
This commit is contained in:
@@ -317,7 +317,7 @@ export class HiddenFileSync extends LiveSyncCommands {
|
|||||||
this._fileInfoLastProcessed.set(file, key);
|
this._fileInfoLastProcessed.set(file, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
async updateLastProcessedAsActualFile(file: FilePath, stat?: UXStat | null | undefined) {
|
async updateLastProcessedAsActualFile(file: FilePath, stat?: UXStat | null) {
|
||||||
if (!stat) stat = await this.core.storageAccess.statHidden(file);
|
if (!stat) stat = await this.core.storageAccess.statHidden(file);
|
||||||
this._fileInfoLastProcessed.set(file, this.statToKey(stat));
|
this._fileInfoLastProcessed.set(file, this.statToKey(stat));
|
||||||
}
|
}
|
||||||
@@ -413,7 +413,7 @@ export class HiddenFileSync extends LiveSyncCommands {
|
|||||||
|
|
||||||
async updateLastProcessedAsActualDatabase(
|
async updateLastProcessedAsActualDatabase(
|
||||||
file: FilePath,
|
file: FilePath,
|
||||||
doc?: MetaEntry | LoadedEntry | null | undefined | false
|
doc?: MetaEntry | LoadedEntry | null | false
|
||||||
) {
|
) {
|
||||||
const dbPath = addPrefix(file, ICHeader);
|
const dbPath = addPrefix(file, ICHeader);
|
||||||
if (!doc) doc = await this.localDatabase.getDBEntryMeta(dbPath);
|
if (!doc) doc = await this.localDatabase.getDBEntryMeta(dbPath);
|
||||||
|
|||||||
+1
-1
Submodule src/lib updated: 744d9bf5dd...64d5b17925
@@ -349,7 +349,7 @@ export class ObsidianLiveSyncSettingTab extends PluginSettingTab {
|
|||||||
createEl<T extends keyof HTMLElementTagNameMap>(
|
createEl<T extends keyof HTMLElementTagNameMap>(
|
||||||
el: HTMLElement,
|
el: HTMLElement,
|
||||||
tag: T,
|
tag: T,
|
||||||
o?: string | DomElementInfo | undefined,
|
o?: string | DomElementInfo,
|
||||||
callback?: (el: HTMLElementTagNameMap[T]) => void,
|
callback?: (el: HTMLElementTagNameMap[T]) => void,
|
||||||
func?: OnUpdateFunc
|
func?: OnUpdateFunc
|
||||||
) {
|
) {
|
||||||
@@ -361,7 +361,7 @@ export class ObsidianLiveSyncSettingTab extends PluginSettingTab {
|
|||||||
addEl<T extends keyof HTMLElementTagNameMap>(
|
addEl<T extends keyof HTMLElementTagNameMap>(
|
||||||
el: HTMLElement,
|
el: HTMLElement,
|
||||||
tag: T,
|
tag: T,
|
||||||
o?: string | DomElementInfo | undefined,
|
o?: string | DomElementInfo,
|
||||||
callback?: (el: HTMLElementTagNameMap[T]) => void,
|
callback?: (el: HTMLElementTagNameMap[T]) => void,
|
||||||
func?: OnUpdateFunc
|
func?: OnUpdateFunc
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user