From d0acfe9813e85b5843a6bdcb13beff5f0ef3cb7c Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Sat, 27 Aug 2022 16:57:54 +0200 Subject: [PATCH] Small optimisation --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 6cd74ae..8557eba 100644 --- a/main.go +++ b/main.go @@ -232,8 +232,7 @@ func savingThrow(stat Stat) int { } func skillCheck(skill Skill) int { - var die int - die = rollDice() + die := rollDice() die += getModifier(getStat(skill.BaseStat))