Skip to content

Commit

Permalink
Code Cleanup (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Jul 12, 2022
1 parent 602852a commit f950a92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ object VRUtil {
assertSame(usedNode, usingNode)
} else {
assertTrue(usingNode is DeclaredReferenceExpression)
val reference = usingNode as DeclaredReferenceExpression?
assertEquals(reference!!.refersTo, usedNode)
val reference = usingNode as? DeclaredReferenceExpression
assertEquals(reference?.refersTo, usedNode)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,8 @@ import de.fraunhofer.aisec.cpg.graph.declarations.ConstructorDeclaration
import de.fraunhofer.aisec.cpg.graph.declarations.MethodDeclaration
import java.io.File
import kotlin.test.*
<<<<<<< HEAD
import kotlin.test.BeforeTest
import kotlin.test.Test
=======
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
>>>>>>> 0efe0c1a (Fixing templates)

internal class ScopeManagerTest : BaseTest() {
private lateinit var config: TranslationConfiguration
Expand Down

0 comments on commit f950a92

Please sign in to comment.