Code smell: redundant information of folder name and file name.
This commit is contained in:
parent
7bab421f80
commit
6a60f4f13f
@ -6,8 +6,8 @@ storeContents
|
||||
dehidratated := self copy.
|
||||
dehidratated tweets: nil.
|
||||
objectString := STON toStringPretty: dehidratated.
|
||||
directory := (FileLocator userData / 'Socialmetrica' / self userName) ensureCreateDirectory.
|
||||
oldFile := directory / self userName, 'ston'.
|
||||
directory := self folder ensureCreateDirectory.
|
||||
oldFile := directory / 'profile', 'ston'.
|
||||
|
||||
oldFile exists ifFalse: [
|
||||
^ MarkupFile exportAsFileOn: oldFile containing: objectString ].
|
||||
|
@ -5,5 +5,5 @@ reStoreDefinition
|
||||
define: #userName as: String;
|
||||
define: #profileImageUrl as: String;
|
||||
define: #profileBio as: String;
|
||||
define: #createdAt as: String;
|
||||
"define: #createdAt as: String;"
|
||||
yourself.
|
Loading…
Reference in New Issue
Block a user