Skip to content

Commit 62dcd05

Browse files
committed
Fixed unit tests
1 parent 8555c96 commit 62dcd05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ColorSetKit/NSColor+ColorSetKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ import Cocoa
351351
{
352352
if #available( macOS 10.14, * )
353353
{
354-
if NSApp.effectiveAppearance.name == NSAppearance.Name.darkAqua
354+
if NSApp != nil && NSApp.effectiveAppearance.name == NSAppearance.Name.darkAqua
355355
{
356356
return true
357357
}

0 commit comments

Comments
 (0)