Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit 6cebb91

Browse files
committed
delete useless code
1 parent c8608cc commit 6cebb91

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/debug.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ func debugConnection(url string) bool {
4848

4949
func debug(url string) bool {
5050
if url != "--help" && url != "-h" {
51-
fmt.Println("" +
51+
fmt.Println(
5252
"FastGit Debug Command Line Tool\n" +
53-
"===============================")
53+
"===============================")
5454
if !(strings.HasPrefix(url, "http://") || strings.HasPrefix(url, "https://")) {
5555
url = "http://" + url
5656
}
@@ -76,7 +76,6 @@ func debug(url string) bool {
7676
fmt.Printf("[%s]\n", strings.Replace(string(s), "\n", "", -1))
7777
}
7878
}
79-
8079
return debugConnection(url)
8180
} else {
8281
fmt.Println(debugHelpMsg)

src/get.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ func (g *GetFunc) Run(args []string) {
2525
func get(url, fpath string) {
2626
if url == "" || url == "--help" || url == "-h" {
2727
fmt.Println(getHelpMsg)
28-
os.Exit(0)
2928
} else {
3029
getFile(url, fpath)
3130
}

src/jsdget.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ func jsdget(url string, path string) {
3232
func parseToJsdUrl(url string) string {
3333
u := strings.Split(url, "//")
3434
switch len(u) {
35-
case 1:
36-
break
3735
case 2:
3836
url = u[1]
3937
case 3:

0 commit comments

Comments
 (0)