Commit Diff


commit - 81135670fc76779b87dcb39825501abb68f4a547
commit + 0526966e98179aa1a337b127376b21dbcb94b8a2
blob - 4410f6b68a29f6d49258d0daf30f0d8fbbd5774b
blob + 94c78de2912607266c112dcb798d6716f12582e7
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
@@ -2000,8 +2000,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) &&