Changes to make codacy happier.

This commit is contained in:
verhoek
2018-06-09 14:19:18 +02:00
parent bc826b2300
commit 441d893a49
3 changed files with 6 additions and 12 deletions
@@ -22,7 +22,7 @@ namespace Duplicati.Library.Backend.WebApi
{
public class Google
{
public class QueryParam
protected class QueryParam
{
public const string File = "q";
public const string PageToken = "pageToken";
@@ -30,7 +30,7 @@ namespace Duplicati.Library.Backend.WebApi
public const string Alt = "alt";
}
public class QueryValue
protected class QueryValue
{
public const string True = "true";
public const string Resumable = "resumable";
+1 -7
View File
@@ -21,13 +21,7 @@ namespace Duplicati.Library.Utility
{
public class UrlPath
{
/// <summary>
/// Concats paths of URIs.
/// </summary>
/// <returns>The concatenated paths.</returns>
/// <param name="path">Path1.</param>
StringBuilder paths;
readonly StringBuilder paths;
bool trailingSlash = false;
public UrlPath(string path)
+3 -3
View File
@@ -24,7 +24,7 @@ namespace Duplicati.UnitTest
{
[Test]
[Category("WebApi")]
public void GoogleCloudPutUrl()
public static void GoogleCloudPutUrl()
{
string bucketId = "my_bucket";
@@ -35,7 +35,7 @@ namespace Duplicati.UnitTest
[Test]
[Category("WebApi")]
public void CreateFolderUrl()
public static void CreateFolderUrl()
{
var url = "https://www.googleapis.com/drive/v2/files?supportsTeamDrives=true";
Assert.AreEqual(url, GoogleDrive.CreateFolderUrl(true));
@@ -43,7 +43,7 @@ namespace Duplicati.UnitTest
[Test]
[Category("WebApi")]
public void AboutInfoUrl()
public static void AboutInfoUrl()
{
var url = "https://www.googleapis.com/drive/v2/about";
Assert.AreEqual(url, GoogleDrive.AboutInfoUrl());