Skip to content

Commit 968a02e

Browse files
committed
spacing fixes
1 parent a9aff3d commit 968a02e

File tree

3 files changed

+35
-35
lines changed

3 files changed

+35
-35
lines changed
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
using Newtonsoft.Json;
2-
3-
namespace Nest
1+
using Newtonsoft.Json;
2+
3+
namespace Nest
44
{
5-
public interface IUpdateResponse : IResponse
6-
{
7-
bool OK { get; }
8-
ShardsMetaData ShardsHit { get; }
9-
string Index { get; }
10-
string Type { get; }
11-
string Id { get; }
12-
string Version { get; }
13-
}
5+
public interface IUpdateResponse : IResponse
6+
{
7+
bool OK { get; }
8+
ShardsMetaData ShardsHit { get; }
9+
string Index { get; }
10+
string Type { get; }
11+
string Id { get; }
12+
string Version { get; }
13+
}
1414

15-
[JsonObject]
15+
[JsonObject]
1616
public class UpdateResponse : BaseResponse, IUpdateResponse
17-
{
18-
[JsonProperty(PropertyName = "ok")]
19-
public bool OK { get; private set; }
20-
21-
[JsonProperty(PropertyName = "_shards")]
22-
public ShardsMetaData ShardsHit { get; private set; }
23-
24-
[JsonProperty(PropertyName = "_index")]
25-
public string Index { get; private set; }
26-
[JsonProperty(PropertyName = "_type")]
27-
public string Type { get; private set; }
28-
[JsonProperty(PropertyName = "_id")]
29-
public string Id { get; private set; }
30-
[JsonProperty(PropertyName = "_version")]
31-
public string Version { get; private set; }
32-
}
33-
}
17+
{
18+
[JsonProperty(PropertyName = "ok")]
19+
public bool OK { get; private set; }
20+
21+
[JsonProperty(PropertyName = "_shards")]
22+
public ShardsMetaData ShardsHit { get; private set; }
23+
24+
[JsonProperty(PropertyName = "_index")]
25+
public string Index { get; private set; }
26+
[JsonProperty(PropertyName = "_type")]
27+
public string Type { get; private set; }
28+
[JsonProperty(PropertyName = "_id")]
29+
public string Id { get; private set; }
30+
[JsonProperty(PropertyName = "_version")]
31+
public string Version { get; private set; }
32+
}
33+
}

src/Tests/Nest.Tests.Integration.Yaml/YamlTestsBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ protected void IsMatch(object o, object value)
283283
var nOtherJson = JObject.Parse(Encoding.UTF8.GetString(json)).ToString();
284284
Assert.AreEqual(nJson, nOtherJson);
285285
}
286-
if (v.StartsWith("/"))
286+
else if (v.StartsWith("/"))
287287
{
288288
var re = Regex.Replace(v, @"(^[\s\r\n]*?\/|\/[\s\r\n]*?$)", "");
289289
Assert.IsTrue(Regex.IsMatch(this._status.Result, re, RegexOptions.IgnorePatternWhitespace));

src/Tests/Nest.Tests.Unit/BigBadUrlUnitTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ public void TestAllTheUrls()
5050
Do("POST", "/_cache/clear", c => c.ClearCache());
5151
Do("POST", "/mydefaultindex/_cache/clear", c => c.ClearCache(cc => cc.Index<Doc>()));
5252
Do("POST", "/mydefaultindex/_close", c => c.CloseIndex(ci => ci.Index<Doc>()));
53-
Do("GET", "/_cluster/nodes", c => c.NodesInfo());
54-
Do("GET", "/_cluster/nodes/insert-marvel-character", c => c.NodesInfo(cn => cn.NodeId("insert-marvel-character")));
55-
Do("GET", "/_cluster/nodes/stats?all=true", c => c.NodesStats());
56-
Do("GET", "/_cluster/nodes/insert-marvel-character/stats?jvm=true", c => c.NodesStats(cn => cn.NodeId("insert-marvel-character")));
53+
Do("GET", "/_nodes", c => c.NodesInfo());
54+
Do("GET", "/_nodes/insert-marvel-character", c => c.NodesInfo(cn => cn.NodeId("insert-marvel-character")));
55+
Do("GET", "/_nodes/stats", c => c.NodesStats());
56+
Do("GET", "/_nodes/insert-marvel-character/stats?jvm=true", c => c.NodesStats(cn => cn.NodeId("insert-marvel-character")));
5757
Do("GET", "/_cluster/state", c => c.ClusterState());
5858
Do("GET", "/_cluster/state?local=true", c => c.ClusterState(cs => cs.Local()));
5959
Do("POST", "/_count", c => c.Count());

0 commit comments

Comments
 (0)