Skip to content

Commit

Permalink
Fix issue where incorrect string was returned from GetOptionLocation()
Browse files Browse the repository at this point in the history
  • Loading branch information
xcellerator committed Nov 9, 2017
1 parent fd61436 commit f0d3cad
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/extra.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,6 @@ func GetHID() string {
func GetOptionLocation() string {
// Typically returns /boot/usbninja/options.txt
// Defaults to the one in /lib/ if not found
var file_location string

if FileExist("/boot/usbninja/options.txt") {
file_location = "/boot/usbninja/options.txt"
} else {
file_location = "/lib/usbninja/config/options.txt"
}

file_location := "/boot/usbninja/options.txt"
return file_location
}

0 comments on commit f0d3cad

Please sign in to comment.