cleanup<*>: run vs code cleanup to format codestyle and remove unused references

This commit is contained in:
leo 2021-08-05 15:54:00 +08:00
parent 37559b60d4
commit 2cf7192ec4
41 changed files with 77 additions and 89 deletions

View file

@ -5,8 +5,8 @@ using System.Windows.Controls;
namespace SourceGit.Views.Validations {
public class CloneDir : ValidationRule {
public override ValidationResult Validate(object value, CultureInfo cultureInfo) {
return Directory.Exists(value as string)
? ValidationResult.ValidResult
return Directory.Exists(value as string)
? ValidationResult.ValidResult
: new ValidationResult(false, App.Text("BadCloneFolder"));
}
}

View file

@ -5,8 +5,8 @@ namespace SourceGit.Views.Validations {
public class CommitMessage : ValidationRule {
public override ValidationResult Validate(object value, CultureInfo cultureInfo) {
var subject = value as string;
return string.IsNullOrWhiteSpace(subject)
? new ValidationResult(false, App.Text("EmptyCommitMessage"))
return string.IsNullOrWhiteSpace(subject)
? new ValidationResult(false, App.Text("EmptyCommitMessage"))
: ValidationResult.ValidResult;
}
}

View file

@ -5,8 +5,8 @@ namespace SourceGit.Views.Validations {
public class Required : ValidationRule {
public override ValidationResult Validate(object value, CultureInfo cultureInfo) {
var path = value as string;
return string.IsNullOrEmpty(path) ?
new ValidationResult(false, App.Text("Required")) :
return string.IsNullOrEmpty(path) ?
new ValidationResult(false, App.Text("Required")) :
ValidationResult.ValidResult;
}
}