mirror of
https://codeberg.org/scip/valpass.git
synced 2025-12-17 12:41:05 +01:00
fix linters, go to v2
This commit is contained in:
@@ -3,6 +3,7 @@ package valpass_test
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
@@ -372,7 +373,11 @@ func ReadDict(path string) []string {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer file.Close()
|
||||
defer func() {
|
||||
if err := file.Close(); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}()
|
||||
|
||||
var lines []string
|
||||
scanner := bufio.NewScanner(file)
|
||||
|
||||
Reference in New Issue
Block a user