From 2a04c08b72d14c8ef8ad2a69c72eac8a97f3e7ef Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 26 Apr 2016 02:06:09 +0300 Subject: code style --- .bashrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.bashrc b/.bashrc index 3fa6a1b..359a0bf 100644 --- a/.bashrc +++ b/.bashrc @@ -230,13 +230,15 @@ alias ensure_ends_with_dos_newline='sed --binary --in-place -e '"'"'$s/\r\?$/\r/ alias ensure_ends_with_unix_newline='sed --binary --in-place -e '"'"'$a\'"'" sanitize_dos_files() { - trim_trailing_whitespace "$@" && trim_trailing_dos_newlines "$@" && ensure_ends_with_dos_newline "$@" - return $? + trim_trailing_whitespace "$@" \ + && trim_trailing_dos_newlines "$@" \ + && ensure_ends_with_dos_newline "$@" } sanitize_unix_files() { - trim_trailing_whitespace "$@" && trim_trailing_unix_newlines "$@" && ensure_ends_with_unix_newline "$@" - return $? + trim_trailing_whitespace "$@" \ + && trim_trailing_unix_newlines "$@" \ + && ensure_ends_with_unix_newline "$@" } backup_repo() { -- cgit v1.2.3