HotKey icon indicating copy to clipboard operation
HotKey copied to clipboard

Fix unused setter argument warning

Open msanders opened this issue 5 years ago • 1 comments

Fixes:

Sources/HotKey/KeyCombo.swift:26:22: warning: setter argument 'newValue' was never used, but the property was accessed
                        carbonModifiers = modifiers.carbonFlags
                                          ^
Sources/HotKey/KeyCombo.swift:26:22: note: did you mean to use 'newValue' instead of accessing the property's current value?
                        carbonModifiers = modifiers.carbonFlags
                                          ^~~~~~~~~
                                          newValue

msanders avatar Feb 02 '20 01:02 msanders

I'm seeing the same warning. Would love to see this make it in.

wlisac avatar Feb 18 '20 23:02 wlisac

I was about to create a PR and found yours 😁.

puliaiev avatar Apr 21 '23 22:04 puliaiev