Skip to content

Commit

Permalink
Fix code scanning errors
Browse files Browse the repository at this point in the history
  • Loading branch information
audserraCGI committed Mar 9, 2022
1 parent 76986f4 commit f399f90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public class DevicesListPageTests
private FakeNavigationManager mockNavigationManager;
private MockHttpMessageHandler mockHttpClient;

private string apiBaseUrl = "/api/Devices";
private string apiSettingsBaseUrl = "/api/settings/lora";
private string apiTagsBaseUrl = "/api/settings/device-tags";
private readonly string apiBaseUrl = "/api/Devices";
private readonly string apiSettingsBaseUrl = "/api/settings/lora";
private readonly string apiTagsBaseUrl = "/api/settings/device-tags";

[SetUp]
public void SetUp()
Expand Down
2 changes: 1 addition & 1 deletion src/AzureIoTHub.Portal/Server/Services/DeviceTagService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public IEnumerable<string> GetAllSearchableTagsNames()
var tagNameList = this.tableClientFactory
.GetDeviceTagSettings()
.Query<TableEntity>()
.Where(c => this.deviceTagMapper.GetDeviceTag(c).Searchable == true)
.Where(c => this.deviceTagMapper.GetDeviceTag(c).Searchable)
.Select(c => this.deviceTagMapper.GetDeviceTag(c).Name);

return tagNameList.ToList();
Expand Down

0 comments on commit f399f90

Please sign in to comment.