fix: lint errors
This commit is contained in:
parent
abcd3c3c44
commit
763a451251
10 changed files with 91 additions and 55 deletions
|
@ -107,9 +107,10 @@ func (p *DicePlugin) rollDice(formula string) (int, error) {
|
|||
return 0, fmt.Errorf("invalid modifier")
|
||||
}
|
||||
|
||||
if matches[3] == "+" {
|
||||
switch matches[3] {
|
||||
case "+":
|
||||
total += modifier
|
||||
} else if matches[3] == "-" {
|
||||
case "-":
|
||||
total -= modifier
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue