File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/scala/com/snowflake/snowpark/internal Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,16 +116,16 @@ object OpenTelemetry extends Logging {
116116 private def findLineNumber (stacks : Array [StackTraceElement ]): (String , Int ) = {
117117 var index : Int = 0
118118 // start with OpenTelemetry class
119- while (stacks(index).getFileName != " OpenTelemetry.scala" && index < stacks.length ) {
119+ while (index < stacks.length && stacks (index).getFileName != " OpenTelemetry.scala" ) {
120120 index += 1
121121 }
122122 if (index == stacks.length) {
123123 // if can't find open telemetry class, make it N/A
124124 (" N/A" , 0 )
125125 } else {
126- while ((stacks( index).getClassName.startsWith( " com.snowflake.snowpark. " ) ||
127- stacks(index).getClassName.startsWith(" com.snowflake.snowpark_java ." )) &&
128- index < stacks.length ) {
126+ while (index < stacks.length &&
127+ ( stacks(index).getClassName.startsWith(" com.snowflake.snowpark ." ) ||
128+ stacks(index).getClassName.startsWith( " com.snowflake.snowpark_java. " )) ) {
129129 index += 1
130130 }
131131 if (index == stacks.length) {
You can’t perform that action at this time.
0 commit comments