dangeroustech/StreamDL

View on GitHub
move_file.go

Summary

Maintainability
A
0 mins
Test Coverage

Function moveFile has 6 return statements (exceeds 4 allowed).
Invalid

func moveFile(oldPath string, newPath string) error {
    // Open original file
    originalFile, err := os.Open(oldPath)
    if err != nil {
        log.Errorf("Failed to open original file: %v", err)
Severity: Major
Found in move_file.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status