address formatting feedback
authorWraith2 <wraith2@gmail.com>
Thu, 14 Mar 2019 19:48:55 +0000 (19:48 +0000)
committerWraith2 <wraith2@gmail.com>
Thu, 14 Mar 2019 19:48:55 +0000 (19:48 +0000)
Commit migrated from https://github.com/dotnet/corefx/commit/de24817089ee09fcc35b1cfa5829ce5903fd2e72

src/libraries/System.Data.SqlClient/src/System/Data/SqlClient/SqlBuffer.cs

index 0293ac6..31882f2 100644 (file)
@@ -676,20 +676,13 @@ namespace System.Data.SqlClient
         {
             get
             {
-                if (StorageType.Guid==_type)
+                if (StorageType.Guid == _type)
                 {
                     return new SqlGuid(_value._guid); 
                 }
                 else if (StorageType.SqlGuid == _type)
                 {
-                    if (IsNull)
-                    {
-                        return SqlGuid.Null;
-                    }
-                    else
-                    {
-                        return (SqlGuid)_object;
-                    }
+                    return IsNull ? SqlGuid.Null : (SqlGuid)_object;
                 }
                 return (SqlGuid)this.SqlValue; // anything else we haven't thought of goes through boxing.
             }