From 4464301b48c62cdbad7f1c9a67eaafd596655425 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Fri, 14 Apr 2017 17:37:43 +0200
Subject: [PATCH] test auto-indenter

---
 hooks/pre-commit                     | 6 +-----
 pkg/R/constructionModelesLassoRank.R | 2 +-
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/hooks/pre-commit b/hooks/pre-commit
index f9649b3..bf5d735 100755
--- a/hooks/pre-commit
+++ b/hooks/pre-commit
@@ -15,7 +15,7 @@ indent() {
 	fi
 
 	# loop on modified files
-	git diff --cached --name-only $against |while read file;
+	git diff --cached --name-only $against | while read file;
 	do
 		local ext=$(expr "$file" : ".*\(\..*\)")
 		case $ext in
@@ -28,10 +28,6 @@ indent() {
 
 # Indent the file with `indent' if this is a R file
 __indent_R() {
-	if test ! -x "$INDENT"
-	then
-		return;
-	fi
 	if test ! -f $file
 	then
 		return;
diff --git a/pkg/R/constructionModelesLassoRank.R b/pkg/R/constructionModelesLassoRank.R
index dc6bcc1..5c742d1 100644
--- a/pkg/R/constructionModelesLassoRank.R
+++ b/pkg/R/constructionModelesLassoRank.R
@@ -1,7 +1,7 @@
 #' constructionModelesLassoRank
 #'
 #' Construct a collection of models with the Lasso-Rank procedure.
-#' 
+#'
 #' @param S output of selectVariables.R
 #' @param k number of components
 #' @param mini integer, minimum number of iterations in the EM algorithm, by default = 10
-- 
2.44.0