From 86e2246e66aad5b8f81dc7a26d998a62bdd0e736 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Wed, 27 Jul 2011 23:12:48 -0500 Subject: [PATCH] Style --- lib/linguist/blob_helper.rb | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb index aa81aee1..7282aef5 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -194,13 +194,8 @@ module Linguist # file extension. # # Returns true of false. - def xcode_project_file? - if ['.xib', '.nib', '.pbxproj', '.xcworkspacedata', '.xcuserstate'].include?(extname) - true - else - false - end + ['.xib', '.nib', '.pbxproj', '.xcworkspacedata', '.xcuserstate'].include?(extname) end # Internal: Is the blob a Visual Studio project file? @@ -209,13 +204,8 @@ module Linguist # file extension. # # Returns true of false. - def visual_studio_project_file? - if ['.csproj', '.dbproj', '.fsproj', '.pyproj', '.rbproj', '.vbproj', '.vcxproj', '.wixproj', '.resx', '.sln', '.vdproj', '.isproj'].include?(extname) - true - else - false - end + ['.csproj', '.dbproj', '.fsproj', '.pyproj', '.rbproj', '.vbproj', '.vcxproj', '.wixproj', '.resx', '.sln', '.vdproj', '.isproj'].include?(extname) end # Internal: Is the blob minified JS?