Skip to content

Commit

Permalink
Remove 1 linq
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbian committed Aug 15, 2020
1 parent ba1e8fa commit 29a7ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MechJeb2/VesselExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static List<ITargetable> GetTargetables(this Vessel vessel)
else if (vessel == null) return new List<ITargetable>();
else parts = vessel.Parts;

return (parts.SelectMany(part => part.Modules.OfType<ITargetable>())).ToList();
return parts.SelectMany(part => part.Modules.OfType<ITargetable>()).ToList();
}

public static List<T> GetModules<T>(this Vessel vessel) where T : PartModule
Expand Down

0 comments on commit 29a7ddc

Please sign in to comment.