Skip to content

Commit e0b1d4c

Browse files
committed
Revert "#229 - check for null before dispose messsage"
This reverts commit 6176e1b.
1 parent 6176e1b commit e0b1d4c

File tree

1 file changed

+4
-3
lines changed
  • Source/MSBuild.Community.Tasks

1 file changed

+4
-3
lines changed

Source/MSBuild.Community.Tasks/Mail.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,11 @@ public override bool Execute()
292292
}
293293
finally
294294
{
295-
message?.Dispose();
295+
if(message == null)
296+
message.Dispose();
296297
}
297-
298-
return true;
298+
299+
return true;
299300
}
300301
}
301302
}

0 commit comments

Comments
 (0)