Skip to content

Commit

Permalink
remove code smells
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon committed Sep 22, 2023
1 parent d068f26 commit 44754c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

public class FileUtilsTest {
class FileUtilsTest {
@Test
@DisplayName("Test getWorkingPath")
void testGetWorkingPath() {
Path currentPath = FileUtils.getWorkingPath().toAbsolutePath();
assertThat(currentPath.getName(currentPath.getNameCount() - 2).toString())
.isEqualTo("fullstack-base-api");
.hasToString("fullstack-base-api");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@

public class FullstackPlugin implements Plugin<Project> {
@Override
public void apply(Project project) {}
public void apply(Project project) {
// currently no implementation is needed
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
import com.hedera.fullstack.helm.client.HelmClient;
import com.hedera.fullstack.helm.client.HelmClientBuilder;
import com.hedera.fullstack.helm.client.model.Chart;
import com.hedera.fullstack.helm.client.model.chart.Release;
import com.hedera.fullstack.helm.client.model.install.InstallChartOptionsBuilder;
import javax.inject.Inject;
import org.gradle.api.DefaultTask;
import org.gradle.api.provider.Property;
import org.gradle.api.provider.SetProperty;
Expand Down Expand Up @@ -68,11 +66,6 @@ public abstract class HelmInstallChartTask extends DefaultTask {
// TODO: enhance to support multiple values files
public abstract SetProperty<String> getValues();

@Inject
public HelmInstallChartTask() {
super();
}

@TaskAction
void installChart() {
HelmClientBuilder helmClientBuilder = HelmClient.builder();
Expand All @@ -90,8 +83,7 @@ void installChart() {
if (getValues().isPresent()) {
optionsBuilder.values(getValues().get());
}
// TODO: release is not used here
Release release = helmClient.installChart(
helmClient.installChart(
getRelease().getOrNull(),
new Chart(getChart().getOrNull(), getRepo().getOrNull()),
optionsBuilder.build());
Expand Down

0 comments on commit 44754c1

Please sign in to comment.