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 := self copy.
|
||||||
dehidratated tweets: nil.
|
dehidratated tweets: nil.
|
||||||
objectString := STON toStringPretty: dehidratated.
|
objectString := STON toStringPretty: dehidratated.
|
||||||
directory := (FileLocator userData / 'Socialmetrica' / self userName) ensureCreateDirectory.
|
directory := self folder ensureCreateDirectory.
|
||||||
oldFile := directory / self userName, 'ston'.
|
oldFile := directory / 'profile', 'ston'.
|
||||||
|
|
||||||
oldFile exists ifFalse: [
|
oldFile exists ifFalse: [
|
||||||
^ MarkupFile exportAsFileOn: oldFile containing: objectString ].
|
^ MarkupFile exportAsFileOn: oldFile containing: objectString ].
|
||||||
|
@ -5,5 +5,5 @@ reStoreDefinition
|
|||||||
define: #userName as: String;
|
define: #userName as: String;
|
||||||
define: #profileImageUrl as: String;
|
define: #profileImageUrl as: String;
|
||||||
define: #profileBio as: String;
|
define: #profileBio as: String;
|
||||||
define: #createdAt as: String;
|
"define: #createdAt as: String;"
|
||||||
yourself.
|
yourself.
|
Loading…
Reference in New Issue
Block a user