~duncan-bayne/gemlint

c754f8261c99f8a990c6ae69ccc32686a914510f — Duncan Bayne 1 year, 6 months ago 3a3a957
Remove pointless returns
1 files changed, 0 insertions(+), 4 deletions(-)

M main.go
M main.go => main.go +0 -4
@@ 37,13 37,11 @@ func crawl(link string) {
	case 11:
		// SENSITIVE INPUT
		fmt.Fprintf(os.Stdout, "%s\t%d\n", link, response.Status)
		return
	case 30:
		fallthrough
	case 31:
		fmt.Fprintf(os.Stdout, "%s\t%d\n", link, response.Status)
		crawl(response.Meta)
		return
	case 40:
		// TEMPORARY FAILURE
		fallthrough


@@ 57,7 55,6 @@ func crawl(link string) {
		// PROXY ERROR
		fmt.Fprintf(os.Stderr, "%s\t%d\n", link, response.Status)
		failed = true
		return
	case 44:
		// SLOW DOWN
		// BUG: infinite slowdown?


@@ 91,7 88,6 @@ func crawl(link string) {
		// CERTIFICATE NOT VALID
		fmt.Fprintf(os.Stderr, "%s\t%d\n", link, response.Status)
		failed = true
		return
	case 20:
		if response.Meta != "text/gemini" {
			fmt.Fprintf(os.Stdout, "%s\t%d\n", link, response.Status)