Commit Diff


commit - b3f4d55086c5aac0aad36a57ce28e651ee5772fc
commit + 4362cf9c24c2ad037cda602ae688bef54869f793
blob - deca211ecdc51cf256c655aee8c4f0a3b0503b59
blob + ec7d4be738eed407bdd0ad0b89f270f2dc05237f
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
@@ -2001,8 +2001,7 @@ gw_load_got_paths(struct gw_trans *gw_trans)
 		if (error && error->code == GOT_ERR_NOT_GIT_REPO) {
 			error = NULL;
 			continue;
-		}
-		else if (error && error->code != GOT_ERR_LONELY_PACKIDX)
+		} else if (error && error->code != GOT_ERR_LONELY_PACKIDX)
 			goto done;
 
 		if (lstat(gw_dir->path, &st) == 0 && S_ISDIR(st.st_mode) &&