From 4bbf220296765a20c3ba03c5351b21618a835424 Mon Sep 17 00:00:00 2001
From: HampusM <hampus@hampusmat.com>
Date: Sun, 25 Jul 2021 22:34:22 +0200
Subject: Reformated the client code a bit

---
 packages/client/src/views/Repository.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'packages/client/src/views/Repository.vue')

diff --git a/packages/client/src/views/Repository.vue b/packages/client/src/views/Repository.vue
index a3a973d..90578fb 100644
--- a/packages/client/src/views/Repository.vue
+++ b/packages/client/src/views/Repository.vue
@@ -32,7 +32,7 @@ export default defineComponent({
 		const has_readme: Ref<boolean> = ref(false);
 		const error: Ref<string | null> = ref(null);
 
-		const fetchProjects = async(repository: string, router: Router, path: string) => {
+		async function fetchProjects(repository: string, router: Router, path: string) {
 			const repository_data = await fetch(`${window.location.protocol}//${window.location.host}/api/v1/repos/${repository}`);
 
 			if(!repository_data.ok) {
@@ -45,7 +45,7 @@ export default defineComponent({
 
 			if(path.split("/").length === 2) {
 				router.replace(`/${repository}/log`);
-			};
+			}
 
 			const data: Repository = (await repository_data.json()).data;
 
@@ -60,4 +60,4 @@ export default defineComponent({
 		this.fetchProjects(getParam(this.$route.params, "repo"), this.$router, this.$route.path);
 	}
 });
-</script>
+</script>
\ No newline at end of file
-- 
cgit v1.2.3-18-g5258

