Fix linter warning about yoda conditions

This commit is contained in:
David Vogel 2025-11-03 19:31:11 +01:00
parent d66d337897
commit 473563756d

View File

@ -15,10 +15,10 @@ func TestCliOptions(t *testing.T) {
if len(args) != 2 {
t.Errorf("wrong number of arguments, expected 2, got %d", len(args))
}
if "--font-path" != args[0] {
if args[0] != "--font-path" {
t.Error("wrong font path option, expected --font-path, got", args[0])
}
if "somepath/to/somewhere"+string(os.PathListSeparator)+"another/to/somewhere" != args[1] {
if args[1] != "somepath/to/somewhere"+string(os.PathListSeparator)+"another/to/somewhere" {
t.Error("wrong font path option, expected my two paths concatenated, got", args[1])
}
}