Skip to content

Commit 73cda1a

Browse files
committed
Code cleanup
1 parent 80c4d6e commit 73cda1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: DeadLock/Classes/ListViewLocker.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ internal void SetOwnership(bool owned)
164164
DirectorySecurity ds = info.GetAccessControl();
165165
ds.SetAccessRuleProtection(false, true);
166166
if (self?.User == null) return;
167-
if (ds.GetOwner(typeof (NTAccount)).ToString() != self.Name)
167+
if (ds.GetOwner(typeof(NTAccount)).ToString() != self.Name)
168168
{
169169
ds.SetOwner(self.User);
170170
}
@@ -204,7 +204,7 @@ internal void SetOwnership(bool owned)
204204
{
205205
FileSecurity fs = File.GetAccessControl(GetPath());
206206
fs.SetAccessRuleProtection(true, false);
207-
AuthorizationRuleCollection rules = fs.GetAccessRules(true, true, typeof (NTAccount));
207+
AuthorizationRuleCollection rules = fs.GetAccessRules(true, true, typeof(NTAccount));
208208
foreach (FileSystemAccessRule rule in rules)
209209
{
210210
fs.RemoveAccessRule(rule);

Diff for: DeadLock/Forms/FrmSettings.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ private void btnSave_Click(object sender, EventArgs e)
367367

368368
private void btnSelectPath_Click(object sender, EventArgs e)
369369
{
370-
cboLanguage.SelectedIndex = cboLanguage.Items.Count -1;
370+
cboLanguage.SelectedIndex = cboLanguage.Items.Count - 1;
371371
OpenFileDialog ofd = new OpenFileDialog { Filter = @"XML (*.xml)|*.xml" };
372372
if (ofd.ShowDialog() == DialogResult.OK)
373373
{

0 commit comments

Comments
 (0)