Improving instance creation for checking if folder is not empty.

This commit is contained in:
ruidajo 2022-10-04 21:37:32 -05:00
parent c1ff0e0243
commit c827dfecd0
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ Class {
TiddlyWiki class >> createFromRemote: aRemoteTWUrl in: aFolder [
| wiki |
aFolder hasChildren ifTrue: [ ^ nil ].
wiki := TiddlyWiki new
remote: aRemoteTWUrl;
folder: aFolder;
@ -35,7 +36,7 @@ TiddlyWiki class >> createFromRemote: aRemoteTWUrl in: aFolder named: aNameStrin
| wiki |
wiki := self createFromRemote: aRemoteTWUrl in: aFolder.
^ wiki name: aNameString
^ wiki ifNotNil: [ ^ wiki name: aNameString ]
]
{ #category : #accessing }