1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Naming tweak to #6047

@linonetwo I realised on review that we refer to boot.files as the "tiddler file info"
This commit is contained in:
jeremy@jermolene.com 2023-03-05 17:40:04 +00:00
parent f9604c40d3
commit 3f478f5689

View File

@ -140,7 +140,7 @@ FileSystemAdaptor.prototype.deleteTiddler = function(title,callback,options) {
}
}
// Remove the tiddler from self.boot.files & return null adaptorInfo
self.deleteTiddlerInCache(title);
self.removeTiddlerFileInfo(title);
return callback(null,null);
});
} else {
@ -151,8 +151,8 @@ FileSystemAdaptor.prototype.deleteTiddler = function(title,callback,options) {
/*
Delete a tiddler in cache, without modifying file system.
*/
FileSystemAdaptor.prototype.deleteTiddlerInCache = function(title) {
// Only delete the tiddler if we have writable information for the file
FileSystemAdaptor.prototype.removeTiddlerFileInfo = function(title) {
// Only delete the tiddler info if we have writable information for the file
if(this.boot.files[title]) {
delete this.boot.files[title];
};