Skip to content

Commit 86513e7

Browse files
committed
Simplify collection initialization
1 parent 427e554 commit 86513e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Toimik.RobotsProtocol.Tests/RobotsTagTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ public void LoadStartsAfresh()
147147
};
148148
robotsTag.Load(data);
149149
const string UserAgent2 = "otherbot";
150-
data = new List<string>
151-
{
150+
data =
151+
[
152152
$"{UserAgent2}: none",
153-
};
153+
];
154154
robotsTag.Load(data);
155155

156156
Assert.Equal(0, robotsTag.GetTagCount(UserAgent1));

0 commit comments

Comments
 (0)