refactor: make error handling simpler

This commit is contained in:
Stavros
2025-03-19 16:33:07 +02:00
parent f3471880ee
commit 3745394c8c
15 changed files with 145 additions and 139 deletions

View File

@@ -102,7 +102,7 @@ func TestParseFileToLine(t *testing.T) {
t.Log("Testing parse file to line with a valid string")
// Test the parse file to line function with a valid string
content := "user1:pass1\nuser2:pass2"
content := "\nuser1:pass1\nuser2:pass2\n"
expected := "user1:pass1,user2:pass2"
result := utils.ParseFileToLine(content)