error cannot be nil at this point

This commit is contained in:
2025-12-29 17:26:18 +01:00
parent 620f982939
commit 07a4f808d3
+3 -1
View File
@@ -1917,7 +1917,9 @@ func GetAllSkillsWithLearningCosts(characterClass string) (map[string][]gin.H, e
difficulty := skillInfo.DifficultyName
var learnCost int
if err == nil && bestCategory != "" {
// error cannot be nil at this point
//if err == nil && bestCategory != "" {
if bestCategory != "" {
// Use the difficulty as a basis for learning cost
switch difficulty {
case "Leicht":