From 0ff99de89634fc508cd925d5f8ef9c0427d10622 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Thu, 27 Oct 2022 09:14:10 -0500 Subject: [PATCH] Fixing unreachable code. --- repository/TiddlyWiki/TiddlyWiki.class.st | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/repository/TiddlyWiki/TiddlyWiki.class.st b/repository/TiddlyWiki/TiddlyWiki.class.st index 3c0ac51..6486d2e 100644 --- a/repository/TiddlyWiki/TiddlyWiki.class.st +++ b/repository/TiddlyWiki/TiddlyWiki.class.st @@ -342,7 +342,7 @@ TiddlyWiki >> exportTW5Tiddlers [ { #category : #accessing } TiddlyWiki >> file [ - ^ file ifNil: [ file := self folder / 'index.html' ] + ^ file ] { #category : #accessing } @@ -353,9 +353,8 @@ TiddlyWiki >> file: anObject [ { #category : #accessing } TiddlyWiki >> folder [ folder ifNotNil: [ ^ folder ]. - self file - ifNotNil: [ folder := self file parent ] - ifNil: [ folder := FileLocator temp ] + self file ifNotNil: [ file parent ]. + ^ folder := FileLocator temp ] @@ -428,10 +427,7 @@ TiddlyWiki >> importJSONFile [ { #category : #accessing } TiddlyWiki >> importJSONLink [ - jsonFile := self folder / 'tiddlers.json'. - self - name; - file. + self jsonFile: self folder / 'tiddlers.json'. MarkupFile exportAsFileOn: jsonFile containing: self remoteTiddlersContentsString. ^ self fromString: self remoteTiddlersContentsString ] @@ -468,8 +464,8 @@ TiddlyWiki >> isInTiddlyHost [ TiddlyWiki >> jsonFile [ ^ jsonFile ifNil: [ self htmlFileExists ifNotNil: - [ jsonFile := file parent / 'tiddlers.json' ] - ] + [ jsonFile := self folder / 'tiddlers.json' ] + ] ] { #category : #accessing }