mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[fixcode] Accept the fixit for adding bang to unwrap optional.
This is useful for getting fixits for the IOU handling changes.
This commit is contained in:
@@ -554,11 +554,6 @@ private:
|
||||
if (FixitAll)
|
||||
return true;
|
||||
|
||||
// Err on the side of caution and don't automatically add bang, which may
|
||||
// lead to crashes.
|
||||
if (Info.ID == diag::missing_unwrap_optional.ID)
|
||||
return false;
|
||||
|
||||
// Do not add a semi as it is wrong in most cases during migration
|
||||
if (Info.ID == diag::statement_same_line_without_semi.ID)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user