Normalize line endings.
[mono.git] / mcs / class / Microsoft.Build.Tasks / Microsoft.Build.Tasks / Message.cs
index 7612ea610c40612998532dfa471c4092e473a029..8f0783b3f2410047a264bdade1f9d5cc73ef698a 100644 (file)
@@ -42,10 +42,10 @@ namespace Microsoft.Build.Tasks {
 
                public override bool Execute ()
                {
-                       MessageImportance       messageImportance;
-                       
+                       if (text == null)
+                               return true;
 
-                       
+                       MessageImportance       messageImportance;
                        
                        if (importance == null)
                                messageImportance = MessageImportance.Normal;
@@ -58,8 +58,6 @@ namespace Microsoft.Build.Tasks {
                        else {
                                return false;
                        }
-
-                       
                        
                        Log.LogMessage (messageImportance, text, null);
 
@@ -67,21 +65,13 @@ namespace Microsoft.Build.Tasks {
                }
                
                public string Importance {
-                       get {
-                               return importance;
-                       }
-                       set {
-                               importance = value;
-                       }
+                       get { return importance; }
+                       set { importance = value; }
                }
 
                public string Text {
-                       get {
-                               return text;
-                       }
-                       set {
-                               text = value;
-                       }
+                       get { return text; }
+                       set { text = value; }
                }
        }
 }