Skip to content

Code Overview Confusion! #3

Description

@TotallyNotAHaxxer

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions