Removes all mentions of return . where they would be unnecessary (#25142)

* Removes all mentions of `return .`

* I can do this all day

* Arthri review

* Update code/__HELPERS/sanitize_values.dm

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>

* Update code/__HELPERS/sanitize_values.dm

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>

---------

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
DGamerL
2024-04-23 00:49:52 +00:00
committed by GitHub
co-authored by Burzah
parent 6b442d3ed2
commit de6a54fbde
21 changed files with 29 additions and 43 deletions
@@ -12,7 +12,7 @@
var/mob/living/carbon/human/human_user = user
if(!species_custom_messages || (human_user.mind?.miming && !species_custom_mime_messages))
return .
return
var/custom_message
if(user.mind?.miming)
@@ -317,7 +317,7 @@
ADD_SLOWDOWN(H.r_hand.slowdown)
if(ignoreslow)
return . // Only malusses after here
return // Only malusses after here
if(H.dna.species.spec_movement_delay()) //Species overrides for slowdown due to feet/legs
. += 2 * H.stance_damage //damaged/missing feet or legs is slow
-1
View File
@@ -11,7 +11,6 @@
. = ..()
if(user.mind?.miming)
return FALSE // shh
return .
/datum/emote/living/blush
key = "blush"
-2
View File
@@ -20,5 +20,3 @@
//Should update regardless of if we can ventcrawl, since we can end up in pipes in other ways.
update_pipe_vision(loc)
return .
@@ -8,7 +8,6 @@
var/mob/living/L = target
if(L.reagents && !poison_per_bite == 0)
L.reagents.add_reagent(poison_type, poison_per_bite)
return .
/mob/living/simple_animal/hostile/retaliate/poison/snake
name = "snake"
+1 -1
View File
@@ -74,7 +74,7 @@
/mob/living/carbon/human/get_screen_colour() //Fetch the colour matrix from wherever (e.g. eyes) so it can be compared to client.color.
. = ..()
if(.)
return .
return
var/obj/item/clothing/glasses/worn_glasses = glasses
var/obj/item/organ/internal/eyes/eyes = get_int_organ(/obj/item/organ/internal/eyes)