Removed one line ifs and elses. (#11389)

This commit is contained in:
ComicIronic
2016-08-15 11:36:21 +01:00
committed by clusterfack
parent b2b5c81633
commit d490e1f970
914 changed files with 11196 additions and 5646 deletions

View File

@@ -183,7 +183,8 @@ For the main html chat area
// exporting it as text, and then parsing the base64 from that.
// (This relies on byond automatically storing icons in savefiles as base64)
/proc/icon2base64(var/icon/icon, var/iconKey = "misc")
if (!isicon(icon)) return 0
if (!isicon(icon))
return 0
iconCache[iconKey] << icon
var/iconData = iconCache.ExportText(iconKey)
@@ -228,7 +229,8 @@ For the main html chat area
//Otherwise, we're good to throw it at the user
else if (istext(message))
if (istext(target)) return
if (istext(target))
return
//Some macros remain in the string even after parsing and fuck up the eventual output
if (findtext(message, "\improper"))