Was looking through some of the code and realized there is some interesting logic flaws in it! One of them I pointed out was here.
func ExecuteTelemetry(index int) {
filePath := helpers.FileInputString()
switch in := index; in {
case 1:
output := helpers.OutputPathString()
suite := NewDJI_Flight_Path_Map(filePath, output)
suite.ExecuteFlightPathAnalysis()
case 2:
suite := NewDJI_TelemetryVisualizations(filePath)
suite.ExecuteTelemetryVisualizations()
}
}
When using switch case, you are using in := index; in
but never actually using the in variable! Is this variable used or exported else where? Maybe I am missing something! Just noticed that when running the tool on a debugger, this statement popped up a ton!
Was looking through some of the code and realized there is some interesting logic flaws in it! One of them I pointed out was here.
When using switch case, you are using
in := index; inbut never actually using the
invariable! Is this variable used or exported else where? Maybe I am missing something! Just noticed that when running the tool on a debugger, this statement popped up a ton!