From 2e2c1d07d8a4d8e23ac3a3c6626d06c55ed2f63f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 14 Mar 2020 19:45:17 +0000 Subject: [PATCH] mad: fix RuboCop Style/TrailingBodyOnMethodDefinition. --- Formula/mad.rb | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/Formula/mad.rb b/Formula/mad.rb index e6797b420da..2b190834c6e 100644 --- a/Formula/mad.rb +++ b/Formula/mad.rb @@ -22,19 +22,20 @@ class Mad < Formula (lib+"pkgconfig/mad.pc").write pc_file end - def pc_file; <<~EOS - prefix=#{opt_prefix} - exec_prefix=${prefix} - libdir=${exec_prefix}/lib - includedir=${prefix}/include + def pc_file + <<~EOS + prefix=#{opt_prefix} + exec_prefix=${prefix} + libdir=${exec_prefix}/lib + includedir=${prefix}/include - Name: mad - Description: MPEG Audio Decoder - Version: #{version} - Requires: - Conflicts: - Libs: -L${libdir} -lmad -lm - Cflags: -I${includedir} - EOS + Name: mad + Description: MPEG Audio Decoder + Version: #{version} + Requires: + Conflicts: + Libs: -L${libdir} -lmad -lm + Cflags: -I${includedir} + EOS end end