Skip to content

Commit 2a30feb

Browse files
authored
Merge pull request #43 from YassinLokhat/42-check-status-fix
Code cleanup
2 parents be15f23 + 566412c commit 2a30feb

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Core/Utils/QrCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public int ECIAssignValue
132132
get;
133133
set
134134
{
135-
field = value is >= (-1) and <= 999999 ? value : throw new ArgumentException("ECI Assignment Value must be 0-999999 or -1 for none");
135+
field = value is >= -1 and <= 999999 ? value : throw new ArgumentException("ECI Assignment Value must be 0-999999 or -1 for none");
136136
}
137137
} = -1;
138138

GUI/WPF/ViewModels/InsertIdentifierViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public string Identifier
1717
get => field.Trim();
1818
set
1919
{
20-
PropertyHelper.SetProperty(ref field, value.Trim(), this, PropertyChanged);
20+
_ = PropertyHelper.SetProperty(ref field, value.Trim(), this, PropertyChanged);
2121
_refreshFilter();
2222
}
2323
} = identifier;

GUI/WPF/Views/InsertIdentifierView.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ private InsertIdentifierView(IEnumerable<string> identifiers, string identifier)
2020
DataContext = _viewModel = new(identifiers, identifier);
2121
_identifiers_LB.ItemsSource = _viewModel.Identifiers;
2222
_identifier_TB.SelectAll();
23-
_identifier_TB.Focus();
23+
_ = _identifier_TB.Focus();
2424

2525
Loaded += (s, e) => this.PostLoadSetup();
2626
}

0 commit comments

Comments
 (0)