diff --git a/Socialmetrica.package/NitterUser.class/instance/avatarPicture.st b/Socialmetrica.package/NitterUser.class/instance/avatarPicture.st index 7607c5e..8ee9fc7 100644 --- a/Socialmetrica.package/NitterUser.class/instance/avatarPicture.st +++ b/Socialmetrica.package/NitterUser.class/instance/avatarPicture.st @@ -1,10 +1,9 @@ accessing avatarPicture - | response tempImage | + | response | response := ZnClient new url: (self profileImageUrl); get; response. response contentType = ZnMimeType imageJpeg - ifTrue: [ tempImage := (PluginBasedJPEGReadWriter gtFromBuffer: response contents) asElement ]. + ifTrue: [ ^ (PluginBasedJPEGReadWriter gtFromBuffer: response contents) asElement ]. response contentType = ZnMimeType imagePng - ifTrue: [ tempImage := (PNGReadWriter gtFromBuffer: response contents) asElement ]. - tempImage on: Error do: [ ^ GtABContact new avatar ]. - ^ tempImage value asElement . \ No newline at end of file + ifTrue: [ ^ (PNGReadWriter gtFromBuffer: response contents) asElement ]. + ^ GtABContact new avatar \ No newline at end of file