aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/neko/main.go4
-rw-r--r--cmd/neko/main_test.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd/neko/main.go b/cmd/neko/main.go
index 333e5ce..3fd03f6 100644
--- a/cmd/neko/main.go
+++ b/cmd/neko/main.go
@@ -116,11 +116,11 @@ func Run(args []string) error {
config.Config.CrawlMinutes = minutes
}
- if proxyImages != false {
+ if proxyImages {
config.Config.ProxyImages = proxyImages
}
- if secureCookies != false {
+ if secureCookies {
config.Config.SecureCookies = secureCookies
}
diff --git a/cmd/neko/main_test.go b/cmd/neko/main_test.go
index fd36fdd..b03d6c8 100644
--- a/cmd/neko/main_test.go
+++ b/cmd/neko/main_test.go
@@ -36,7 +36,7 @@ func TestRunCrawl(t *testing.T) {
}
}
-func TestBackgroundCrawlZero(t *testing.T) {
+func TestBackgroundCrawlZero(_ *testing.T) {
backgroundCrawl(0) // Should return immediately
}