Skip to content

Commit

Permalink
fix: Use the correct overload of TeamCityCaller where a return object…
Browse files Browse the repository at this point in the history
… is not needed

Fixes stack72#48
  • Loading branch information
Turner, Dan committed Sep 15, 2014
1 parent 5440a71 commit 4d9057c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/TeamCitySharp/ActionTypes/BuildConfigs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ public void SetConfigurationPauseStatus(BuildTypeLocator locator, bool isPaused)

public void PostRawArtifactDependency(BuildTypeLocator locator, string rawXml)
{
_caller.PostFormat<ArtifactDependency>(rawXml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/artifact-dependencies", locator);
_caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/artifact-dependencies", locator);
}

public void PostRawBuildStep(BuildTypeLocator locator, string rawXml)
{
_caller.PostFormat<BuildConfig>(rawXml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/steps", locator);
_caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/steps", locator);
}

public void PostRawBuildTrigger(BuildTypeLocator locator, string rawXml)
Expand Down
2 changes: 1 addition & 1 deletion src/TeamCitySharp/ActionTypes/VcsRoots.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public VcsRoot ById(string vcsRootId)
public VcsRoot AttachVcsRoot(BuildTypeLocator locator, VcsRoot vcsRoot)
{
var xml = string.Format(@"<vcs-root-entry><vcs-root id=""{0}""/></vcs-root-entry>", vcsRoot.Id);
return _caller.PostFormat<VcsRoot>(xml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/vcs-root-entries", locator);
return _caller.PostFormat<VcsRoot>(xml, HttpContentTypes.ApplicationXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/vcs-root-entries", locator);
}

public void DetachVcsRoot(BuildTypeLocator locator, string vcsRootId)
Expand Down

0 comments on commit 4d9057c

Please sign in to comment.