From 77d603098f9273bf67e023d89a808a905a1007f9 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Mon, 21 Jan 2019 15:54:21 +0530 Subject: [PATCH] DEV: rubocop improvements for plugin.rb --- plugin.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugin.rb b/plugin.rb index dc7df02..e5162b7 100644 --- a/plugin.rb +++ b/plugin.rb @@ -48,7 +48,7 @@ after_initialize do isolate_namespace DataExplorer end - class ValidationError < StandardError; + class ValidationError < StandardError end class SmallBadgeSerializer < ApplicationSerializer @@ -61,8 +61,12 @@ after_initialize do def excerpt Post.excerpt(object.cooked, 70) end - def username; object.user && object.user.username; end - def avatar_template; object.user && object.user.avatar_template; end + def username + object.user && object.user.username + end + def avatar_template + object.user && object.user.avatar_template + end end # Run a data explorer query on the currently connected database.