From d6a84520f4d76fb110fbc217593cbe2cd06d8e1d Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Wed, 27 Apr 2016 17:53:12 +0200 Subject: [PATCH] Ignore first file (.keep) --- src/WorstCaptcha/GetWord.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WorstCaptcha/GetWord.go b/src/WorstCaptcha/GetWord.go index 908e8e0..97d4e2c 100644 --- a/src/WorstCaptcha/GetWord.go +++ b/src/WorstCaptcha/GetWord.go @@ -1,7 +1,6 @@ package WorstCaptcha import ( - "fmt" "io/ioutil" "os" "math/rand" @@ -12,6 +11,7 @@ func GetRandomWord() string { dir, _ := os.Getwd() files, _ := ioutil.ReadDir(dir + "/images/") + files = files[1:] file := files[rand.Intn(len(files))].Name()