Clean up some SonarQube warnings (trailing whitespace, etc).
[platform/upstream/iotivity.git] / tools / style / astyle-clean-cpp-format.sh
index d03a71f..b4a6098 100755 (executable)
@@ -55,9 +55,9 @@ for file in `find  "$indir"  -type f  -name "*$fileext" ` ; do
        else
                infile=$file
        fi
+
        # test end of string for no file extension
-       if [ ! "${infile:(-$extLength)}" = $fileext ] ; then    
+       if [ ! "${infile:(-$extLength)}" = $fileext ] ; then
                fileHasSpaces=true
                continue
        fi
@@ -80,7 +80,7 @@ for file in `find  "$indir"  -type f  -name "*$fileext" ` ; do
 
        #  copy or move the files
        $copyfiles  -f  "$infile"  "$outpath"
-       if [ $? -ne 0 ] ; then  
+       if [ $? -ne 0 ] ; then
                read -sn1 -p "press any key to continue!"
                echo
        fi