Skip to content

Commit 3e1c793

Browse files
committed
fix(formatting): resolve formatting issues
1 parent 8989751 commit 3e1c793

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/no/eirikb/avatest/actions/AvaJavaScriptTestRunnerRunConfigurationGenerator.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ class AvaJavaScriptTestRunnerRunConfigurationGenerator : AnAction() {
3535
}
3636

3737
private fun getTestName(element: PsiElement?): String? {
38-
if (element == null || element.parent== null) {
38+
if (element == null || element.parent == null) {
3939
return null
4040
}
4141

42-
if( element !is JSCallExpression ){
42+
if (element !is JSCallExpression) {
4343
return getTestName(element.parent)
4444
}
4545

@@ -78,7 +78,7 @@ class AvaJavaScriptTestRunnerRunConfigurationGenerator : AnAction() {
7878
val filePath = currentFile.path
7979
val fileName = Paths.get(filePath).fileName.toString()
8080
val basePath = project.basePath
81-
val relPath = if (basePath == null) fileName else currentFile.path.substring(basePath.length +1)
81+
val relPath = if (basePath == null) fileName else currentFile.path.substring(basePath.length + 1)
8282
val node: NodeJsRunConfiguration? =
8383
NodeJsRunConfiguration.getDefaultRunConfiguration(project)?.clone() as NodeJsRunConfiguration?
8484
if (node == null) {

0 commit comments

Comments
 (0)