Skip to content

Commit a08179d

Browse files
committed
Fix code indentation and formatting
- Fix indentation in BaseNuGet.groovy - Fix indentation in NuGetRestore.groovy - Remove trailing whitespace
1 parent b6fc31e commit a08179d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/main/groovy/com/ullink/BaseNuGet.groovy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class BaseNuGet extends Exec {
103103
this()
104104
args command
105105
}
106-
106+
107107
// Dummy exec() method that does nothing - allows subclasses to call super.exec() without error
108108
// The actual execution is handled by @TaskAction execute()
109109
void exec() {
@@ -277,7 +277,7 @@ class BaseNuGet extends Exec {
277277
}
278278

279279
if (!useDotnetRestore) {
280-
if (isFamily(FAMILY_WINDOWS)) {
280+
if (isFamily(FAMILY_WINDOWS)) {
281281
executable = localNuget.absolutePath
282282
} else {
283283
executable = "mono"
@@ -384,9 +384,9 @@ class BaseNuGet extends Exec {
384384
try {
385385
project.logger.info "Downloading NuGet from $url ..."
386386
new URL(url).withInputStream { inputStream ->
387-
localNuget.withOutputStream { outputStream ->
388-
outputStream << inputStream
389-
}
387+
localNuget.withOutputStream { outputStream ->
388+
outputStream << inputStream
389+
}
390390
}
391391
break
392392
} catch (Exception e) {

src/main/groovy/com/ullink/NuGetRestore.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ class NuGetRestore extends BaseNuGet {
117117
project.logger.debug("Skipping MSBuildPath on non-Windows platform (NuGet will use Mono's xbuild/MSBuild)")
118118
} else {
119119
// On Windows, use MSBuildVersion as before
120-
if (!msBuildVersion) msBuildVersion = GradleHelper.getPropertyFromTask(project, 'version', 'msbuild')
121-
if (msBuildVersion) args '-MsBuildVersion', msBuildVersion
120+
if (!msBuildVersion) msBuildVersion = GradleHelper.getPropertyFromTask(project, 'version', 'msbuild')
121+
if (msBuildVersion) args '-MsBuildVersion', msBuildVersion
122122

123123
// MSBuildPath can also be explicitly set on Windows
124124
if (msBuildPath) {

0 commit comments

Comments
 (0)