Skip to content

Commit

Permalink
fix: Fixed final file issue
Browse files Browse the repository at this point in the history
Signed-off-by: Soorya U <[email protected]>
  • Loading branch information
soorya-u committed Dec 31, 2024
1 parent a5b14e3 commit 92fab67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/github/utils/loadenvs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package utils
import (
"bufio"
"os"
"path/filepath"
"strings"
)

func Loadenv(filePath string) (map[string]string, error) {
envs := make(map[string]string)

file, err := os.Open(filePath)
file, err := os.Open(filepath.Clean(filePath))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 92fab67

Please sign in to comment.