Skip to content

Commit cf54421

Browse files
committed
Revert back to fallback if location isnt' correct
1 parent 4686b65 commit cf54421

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/utils/ordering.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ func GetOrder(sortoptions SortOptions, GetLocation locationUtil, osPathname, out
4646
reverseLocation, reverseerr := ReverseLocation(*locationFromFile)
4747
if reverseerr == nil {
4848
location = reverseLocation
49+
if location == "" || location == " " {
50+
location = fallbackFromConfig()
51+
}
4952
}
5053
}
5154
if sortoptions.ByLocation {

0 commit comments

Comments
 (0)