Commit 30e629a0731e205f544205b7900b4d5083e57f08

Edward Thomson 2015-05-11T17:34:14

attr: always return errors

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/attr.c b/src/attr.c
index 102d024..d43a15f 100644
--- a/src/attr.c
+++ b/src/attr.c
@@ -309,7 +309,8 @@ static int attr_setup(git_repository *repo, git_attr_session *attr_session)
 	if (error == 0)
 		error = preload_attr_file(
 			repo, attr_session, GIT_ATTR_FILE__FROM_FILE, NULL, sys.ptr);
-	else if (error != GIT_ENOTFOUND)
+
+	if (error != GIT_ENOTFOUND)
 		return error;
 
 	git_buf_free(&sys);