Skip to content

Commit

Permalink
Optimize code readability by replacing ternary operator with logical …
Browse files Browse the repository at this point in the history
…or construct (#60071)
  • Loading branch information
deeprobin authored Oct 7, 2021
1 parent 5ba5917 commit 6195d98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static class Debugger
// Launch launches & attaches a debugger to the process. If a debugger is already attached,
// nothing happens.
//
public static bool Launch() => IsAttached ? true : LaunchInternal();
public static bool Launch() => IsAttached || LaunchInternal();

// This class implements code:ICustomDebuggerNotification and provides a type to be used to notify
// the debugger that execution is about to enter a path that involves a cross-thread dependency.
Expand Down

0 comments on commit 6195d98

Please sign in to comment.