We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 530e244 commit 437ca43Copy full SHA for 437ca43
exercises/practice/bob/.approaches/introduction.md
@@ -33,13 +33,16 @@ public static string Response(string message)
33
if (IsSilence(message))
34
return "Fine. Be that way!";
35
36
- if (IsYell(message) && IsQuestion(message))
+ var isYell = IsYell(message);
37
+ var isQuestion = IsQuestion(message);
38
+
39
+ if (isYell && isQuestion)
40
return "Calm down, I know what I'm doing!";
41
- if (IsYell(message))
42
+ if (isYell)
43
return "Whoa, chill out!";
44
- if (IsQuestion(message))
45
+ if (isQuestion)
46
return "Sure.";
47
48
return "Whatever.";
0 commit comments