Skip to content

Commit 20ae048

Browse files
Del unused types
1 parent 0e8508c commit 20ae048

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

2022/day01/day01.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ func partOne(lines []string) {
2121
}
2222

2323
func getElfMostCalories(elfMap map[string]int) (string, int) {
24-
var elf string = "1"
25-
var calories int = 0
24+
var elf = "1"
25+
var calories = 0
2626
for key, value := range elfMap {
2727
if value > calories {
2828
calories = value
@@ -34,7 +34,7 @@ func getElfMostCalories(elfMap map[string]int) (string, int) {
3434

3535
func getAllocatedCaloriesPerElf(lines []string) map[string]int {
3636
var elfCalories = make(map[string]int)
37-
var elfNumber int = 1
37+
var elfNumber = 1
3838
for _, stringCalories := range lines {
3939
if stringCalories == "" {
4040
elfNumber++

0 commit comments

Comments
 (0)