Changes to make codacy happier.
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user