File tree Expand file tree Collapse file tree
src/main/java/hudson/plugins/git Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -423,27 +423,21 @@ public String getGitConfigEmail() {
423423 }
424424
425425 public String getGitConfigNameToUse () {
426- String confName ;
427- String globalConfigName = ((DescriptorImpl ) getDescriptor ()).getGlobalConfigName ();
428- if ((fixEmptyAndTrim (globalConfigName ) != null ) && (gitConfigName == null )) {
429- confName = globalConfigName ;
430- } else {
431- confName = gitConfigName ;
426+ String confName = fixEmptyAndTrim (gitConfigName );
427+ if (confName == null ) {
428+ String globalConfigName = ((DescriptorImpl ) getDescriptor ()).getGlobalConfigName ();
429+ confName = fixEmptyAndTrim (globalConfigName );
432430 }
433-
434- return fixEmptyAndTrim (confName );
431+ return confName ;
435432 }
436433
437434 public String getGitConfigEmailToUse () {
438- String confEmail ;
439- String globalConfigEmail = ((DescriptorImpl ) getDescriptor ()).getGlobalConfigEmail ();
440- if ((fixEmptyAndTrim (globalConfigEmail ) != null ) && (gitConfigEmail == null )) {
441- confEmail = globalConfigEmail ;
442- } else {
443- confEmail = gitConfigEmail ;
435+ String confEmail = fixEmptyAndTrim (gitConfigEmail );
436+ if (confEmail == null ) {
437+ String globalConfigEmail = ((DescriptorImpl ) getDescriptor ()).getGlobalConfigEmail ();
438+ confEmail = fixEmptyAndTrim (globalConfigEmail );
444439 }
445-
446- return fixEmptyAndTrim (confEmail );
440+ return confEmail ;
447441 }
448442
449443 public boolean getSkipTag () {
You can’t perform that action at this time.
0 commit comments