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)