diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-25 22:34:22 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-25 22:34:22 +0200 |
commit | 4bbf220296765a20c3ba03c5351b21618a835424 (patch) | |
tree | da6b685a7496bceb928d397f5a073edf1083af44 /packages/client/src/views/Repository.vue | |
parent | 7d27f9c7f1b57693dfdc0dd289015406b90984ec (diff) |
Reformated the client code a bit
Diffstat (limited to 'packages/client/src/views/Repository.vue')
-rw-r--r-- | packages/client/src/views/Repository.vue | 6 |
1 files changed, 3 insertions, 3 deletions
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 |