Minor Cleanup
authorValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Thu, 28 Jul 2016 17:58:11 +0000 (20:58 +0300)
committerValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Thu, 28 Jul 2016 17:58:11 +0000 (20:58 +0300)
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/StepicStudyOptions.java

index 8039f880fb55db1d98e70fda7c203ae72f6b3c74..f7751f1f01db12c0c8f2dd5511af3e4acc69ddcc 100644 (file)
@@ -120,10 +120,8 @@ public class StepicStudyOptions implements StudyOptionsProvider {
     if (project != null) {
       StudyTaskManager taskManager = StudyTaskManager.getInstance(project);
       final StepicUser user = taskManager.getUser();
-      if (user != null) {
-        setLogin(user.getEmail());
-        setPassword(DEFAULT_PASSWORD_TEXT);
-      }
+      setLogin(user.getEmail());
+      setPassword(DEFAULT_PASSWORD_TEXT);
       myEnableTestingFromSamples.setSelected(taskManager.isEnableTestingFromSamples());
       resetCredentialsModification();
     }