From e99cbf84e7ae0dbfe30524f6247efb24b7b1ed99 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 30 Aug 2015 00:58:21 +0200 Subject: [PATCH] Fixed rubocop. --- app/controllers/channels_controller.rb | 2 +- lib/email_helper/probe.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/channels_controller.rb b/app/controllers/channels_controller.rb index 85006db62..c7bde6c30 100644 --- a/app/controllers/channels_controller.rb +++ b/app/controllers/channels_controller.rb @@ -440,7 +440,7 @@ curl http://localhost/api/v1/channels.json -v -u #{login}:#{password} -H "Conten return true if !Setting.get('system_online_service') response_access_deny false - end + end def check_access(id = nil) if !id diff --git a/lib/email_helper/probe.rb b/lib/email_helper/probe.rb index 754f7e2fb..23596a191 100644 --- a/lib/email_helper/probe.rb +++ b/lib/email_helper/probe.rb @@ -354,11 +354,11 @@ returns on fail def self.invalid_fields { - 'authentication failed' => { user: true, password: true}, - 'Username and Password not accepted' => { user: true, password: true}, - 'Incorrect username' => { user: true, password: true}, + 'authentication failed' => { user: true, password: true }, + 'Username and Password not accepted' => { user: true, password: true }, + 'Incorrect username' => { user: true, password: true }, 'Lookup failed' => { user: true }, - 'Invalid credentials' => { user: true, password: true}, + 'Invalid credentials' => { user: true, password: true }, 'getaddrinfo: nodename nor servname provided, or not known' => { host: true }, 'getaddrinfo: Name or service not known' => { host: true }, 'No route to host' => { host: true },