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 @@ -425,27 +425,21 @@ public String getGitConfigEmail() {
425425 }
426426
427427 public String getGitConfigNameToUse () {
428- String confName ;
429- String globalConfigName = ((DescriptorImpl ) getDescriptor ()).getGlobalConfigName ();
430- if ((fixEmptyAndTrim (globalConfigName ) != null ) && (gitConfigName == null )) {
431- confName = globalConfigName ;
432- } else {
433- confName = gitConfigName ;
428+ String confName = fixEmptyAndTrim (gitConfigName );
429+ if (confName == null ) {
430+ String globalConfigName = ((DescriptorImpl ) getDescriptor ()).getGlobalConfigName ();
431+ confName = fixEmptyAndTrim (globalConfigName );
434432 }
435-
436- return fixEmptyAndTrim (confName );
433+ return confName ;
437434 }
438435
439436 public String getGitConfigEmailToUse () {
440- String confEmail ;
441- String globalConfigEmail = ((DescriptorImpl ) getDescriptor ()).getGlobalConfigEmail ();
442- if ((fixEmptyAndTrim (globalConfigEmail ) != null ) && (gitConfigEmail == null )) {
443- confEmail = globalConfigEmail ;
444- } else {
445- confEmail = gitConfigEmail ;
437+ String confEmail = fixEmptyAndTrim (gitConfigEmail );
438+ if (confEmail == null ) {
439+ String globalConfigEmail = ((DescriptorImpl ) getDescriptor ()).getGlobalConfigEmail ();
440+ confEmail = fixEmptyAndTrim (globalConfigEmail );
446441 }
447-
448- return fixEmptyAndTrim (confEmail );
442+ return confEmail ;
449443 }
450444
451445 public boolean getSkipTag () {
You can’t perform that action at this time.
0 commit comments