Skip to content
Snippets Groups Projects
Unverified Commit 8c12fd46 authored by nkakouros's avatar nkakouros Committed by GitHub
Browse files

Merge pull request #5 from nkakouros-original/mehes-kth-patch-1

Reduce unnecessary complexity
parents 4b39cedf 70c9a949
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,6 @@ function headstart() { ...@@ -96,7 +96,6 @@ function headstart() {
complete | env) complete | env)
# <<-CODE_NOTE: This is matched when autocompletion occurs or when using # <<-CODE_NOTE: This is matched when autocompletion occurs or when using
# `eval "$(./headstart env -)"` # `eval "$(./headstart env -)"`
go_early=true
rest+=("$1") rest+=("$1")
;; ;;
*) *)
...@@ -121,21 +120,18 @@ function headstart() { ...@@ -121,21 +120,18 @@ function headstart() {
. "$_GO_USE_MODULES" 'installation' 'aliases' . "$_GO_USE_MODULES" 'installation' 'aliases'
if [[ "$go_early" == 'true' ]]; then case "${rest[0]}" in
case "${rest[0]}" in 'env')
'env') @go "${rest[@]}"
return
;;
'complete')
if [[ "$(get_installation_status)" == 'bootstrapped' ]]; then
@go "${rest[@]}" @go "${rest[@]}"
return fi
;; return
'complete') ;;
if [[ "$(get_installation_status)" == 'bootstrapped' ]]; then esac
@go "${rest[@]}"
fi
return
;;
esac
fi
unset go_early
. "$_GO_USE_MODULES" 'system' . "$_GO_USE_MODULES" 'system'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment