Fixing unreachable code.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-10-27 09:14:10 -05:00
parent d04db00cb5
commit 0ff99de896

View File

@ -342,7 +342,7 @@ TiddlyWiki >> exportTW5Tiddlers [
{ #category : #accessing } { #category : #accessing }
TiddlyWiki >> file [ TiddlyWiki >> file [
^ file ifNil: [ file := self folder / 'index.html' ] ^ file
] ]
{ #category : #accessing } { #category : #accessing }
@ -353,9 +353,8 @@ TiddlyWiki >> file: anObject [
{ #category : #accessing } { #category : #accessing }
TiddlyWiki >> folder [ TiddlyWiki >> folder [
folder ifNotNil: [ ^ folder ]. folder ifNotNil: [ ^ folder ].
self file self file ifNotNil: [ file parent ].
ifNotNil: [ folder := self file parent ] ^ folder := FileLocator temp
ifNil: [ folder := FileLocator temp ]
] ]
@ -428,10 +427,7 @@ TiddlyWiki >> importJSONFile [
{ #category : #accessing } { #category : #accessing }
TiddlyWiki >> importJSONLink [ TiddlyWiki >> importJSONLink [
jsonFile := self folder / 'tiddlers.json'. self jsonFile: self folder / 'tiddlers.json'.
self
name;
file.
MarkupFile exportAsFileOn: jsonFile containing: self remoteTiddlersContentsString. MarkupFile exportAsFileOn: jsonFile containing: self remoteTiddlersContentsString.
^ self fromString: self remoteTiddlersContentsString ^ self fromString: self remoteTiddlersContentsString
] ]
@ -468,7 +464,7 @@ TiddlyWiki >> isInTiddlyHost [
TiddlyWiki >> jsonFile [ TiddlyWiki >> jsonFile [
^ jsonFile ifNil: [ ^ jsonFile ifNil: [
self htmlFileExists ifNotNil: self htmlFileExists ifNotNil:
[ jsonFile := file parent / 'tiddlers.json' ] [ jsonFile := self folder / 'tiddlers.json' ]
] ]
] ]