soffes / HotKey

Simple global shortcuts in macOS
MIT License
921 stars 82 forks source link

Fix unused setter argument warning #22

Closed msanders closed 1 year ago

msanders commented 4 years ago

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
wlisac commented 4 years ago

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

puliaiev commented 1 year ago

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