diff --git a/spotbugs-exclude.xml b/spotbugs-exclude.xml
index 9aa2e50f..38d65b7f 100644
--- a/spotbugs-exclude.xml
+++ b/spotbugs-exclude.xml
@@ -65,9 +65,6 @@
-
-
-
diff --git a/src/main/java/com/thealgorithms/maths/Gaussian.java b/src/main/java/com/thealgorithms/maths/Gaussian.java
index cefbaea5..255a84d1 100644
--- a/src/main/java/com/thealgorithms/maths/Gaussian.java
+++ b/src/main/java/com/thealgorithms/maths/Gaussian.java
@@ -7,7 +7,6 @@ public final class Gaussian {
}
public static ArrayList gaussian(int matSize, ArrayList matrix) {
- ArrayList answerArray = new ArrayList();
int i;
int j = 0;
@@ -22,8 +21,7 @@ public final class Gaussian {
}
mat = gaussianElimination(matSize, i, mat);
- answerArray = valueOfGaussian(matSize, x, mat);
- return answerArray;
+ return valueOfGaussian(matSize, x, mat);
}
// Perform Gaussian elimination
diff --git a/src/test/java/com/thealgorithms/maths/GaussianTest.java b/src/test/java/com/thealgorithms/maths/GaussianTest.java
index 16b8da13..fe900fa2 100644
--- a/src/test/java/com/thealgorithms/maths/GaussianTest.java
+++ b/src/test/java/com/thealgorithms/maths/GaussianTest.java
@@ -12,7 +12,6 @@ public class GaussianTest {
@Test
void passTest1() {
ArrayList list = new ArrayList();
- ArrayList gaussian = new ArrayList();
ArrayList answer = new ArrayList();
answer.add(0.0);
answer.add(1.0);
@@ -24,8 +23,7 @@ public class GaussianTest {
list.add(2.0);
list.add(1.0);
list.add(1.0);
- gaussian = gaussian(matrixSize, list);
- assertEquals(answer, gaussian);
+ assertEquals(answer, gaussian(matrixSize, list));
}
}