Skip to content

Commit d3c43d7

Browse files
committed
format and add restore before format
1 parent 792a635 commit d3c43d7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
hooks:
66
- id: dotnet-format
77
name: dotnet format
8-
entry: dotnet format --include
8+
entry: bash -lc "dotnet restore && dotnet format --include --no-restore"
99
language: system
1010
pass_filenames: true
1111
files: '\.(cs|vb|fs|sln|csproj|fsproj)$'

tests/Apache.IoTDB.Tests/UtilsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void ParseTEndPointIpv4AndIpv6Url_NoPort_ReturnsEmptyEndpoint()
7575
var endpoint = _utils.ParseTEndPointIpv4AndIpv6Url(noPort);
7676

7777
// Assert
78-
Assert.That(string.IsNullOrEmpty(endpoint.Ip) && endpoint.Port == 0,
78+
Assert.That(string.IsNullOrEmpty(endpoint.Ip) && endpoint.Port == 0,
7979
Is.True, "Failed to handle missing port.");
8080
}
8181

@@ -89,7 +89,7 @@ public void ParseTEndPointIpv4AndIpv6Url_EmptyInput_ReturnsEmptyEndpoint()
8989
var endpoint = _utils.ParseTEndPointIpv4AndIpv6Url(emptyInput);
9090

9191
// Assert
92-
Assert.That(string.IsNullOrEmpty(endpoint.Ip) && endpoint.Port == 0,
92+
Assert.That(string.IsNullOrEmpty(endpoint.Ip) && endpoint.Port == 0,
9393
Is.True, "Failed to handle empty input.");
9494
}
9595

0 commit comments

Comments
 (0)