DEV: Reformat single line method definition

DEV: Reformat single line method definition

Following comments on DEV: Correct auth_provider deprecation warning · discourse/discourse@71aaed2 · GitHub

From 9125b5fbc480e860dd03a5ca661e3a4bcaa163ca Mon Sep 17 00:00:00 2001
From: David Taylor <david@taylorhq.com>
Date: Mon, 3 Dec 2018 15:02:31 +0000
Subject: [PATCH] DEV: Reformat single line method definition

Following comments on https://github.com/discourse/discourse/commit/71aaed272cb2e8155e771b8055b7eec975b8c66b

diff --git a/lib/auth/auth_provider.rb b/lib/auth/auth_provider.rb
index 149744c..8f8d795 100644
--- a/lib/auth/auth_provider.rb
+++ b/lib/auth/auth_provider.rb
@@ -18,7 +18,9 @@ class Auth::AuthProvider
     @enabled_setting = val
   end
 
-  def background_color=(val) Discourse.deprecate("background_color is no longer functional. Please use CSS instead") end;
+  def background_color=(val)
+    Discourse.deprecate("background_color is no longer functional. Please use CSS instead")
+  end
 
   def name
     authenticator.name

GitHub

2 Likes