Skip to content

Commit

Permalink
[ minor fix ] Fix a bug by @zxj5470
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Sep 6, 2018
1 parent 1e7fa7b commit ab77029
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/org/ice1000/julia/lang/editing/julia-annotator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ ${if ("()" == functionBody || functionBody.isBlank()) "" else " return $funct
val typeParamsText = element.typeParameters?.text.orEmpty()
val where = element.whereClauseList
val name = element.name
if (where.isNotEmpty()) when {
if (where.isEmpty()) when {
statements.isEmpty() -> holder.createWeakWarningAnnotation(
element.firstChild,
JuliaBundle.message("julia.lint.empty-function"))
Expand Down
2 changes: 1 addition & 1 deletion src/org/ice1000/julia/lang/execution/julia-consoles.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class JuliaConsoleFilter(private val project: Project) : Filter {

private companion object PatternHolder {
private val STACK_FRAME_LOCATION = Pattern.compile(JULIA_STACK_FRAME_LOCATION_REGEX)
// TODO rmeove this. This seems no longer work.
// TODO remove this. This seems no longer work.
private val ERROR_FILE_LOCATION = Pattern.compile(JULIA_ERROR_FILE_LOCATION_REGEX)
}

Expand Down

0 comments on commit ab77029

Please sign in to comment.