mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-01 17:24:59 +00:00
cleanup<*>: run vs code cleanup to format codestyle and remove unused references
This commit is contained in:
parent
37559b60d4
commit
2cf7192ec4
41 changed files with 77 additions and 89 deletions
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue