Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
Get rid of a few warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jericho committed Sep 1, 2016
1 parent 01ce7e4 commit 397e332
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion CakeMail.RestClient.UnitTests/MockRestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public class MockRestClient : Mock<IRestClient>
public const string API_KEY = "...dummy API key...";
public const string USER_KEY = "...dummy USER key...";


public MockRestClient(string resource, IEnumerable<Parameter> parameters, RestResponse response, bool includeUserKeyParam = true) : base(MockBehavior.Strict)
{
ConfigureMock(resource, parameters, response, includeUserKeyParam);
Expand Down
2 changes: 1 addition & 1 deletion CakeMail.RestClient/Resources/Lists.cs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ public Task<IEnumerable<ImportResult>> ImportAsync(string userKey, long listId,
};
if (listMembers != null)
{
foreach (var item in listMembers.Select((member, i) => new { Index = i, Email = member.Email, CustomFields = member.CustomFields }))
foreach (var item in listMembers.Select((member, i) => new { Index = i, member.Email, member.CustomFields }))
{
parameters.Add(new KeyValuePair<string, object>(string.Format("record[{0}][email]", item.Index), item.Email));
if (item.CustomFields != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist
if (reader.TokenType != JsonToken.String) throw new Exception("Wrong Token Type");

var booleanAsString = (string)reader.Value;
var boolean = (booleanAsString == "1");
var boolean = booleanAsString == "1";

return boolean;
}
Expand Down

0 comments on commit 397e332

Please sign in to comment.