Skip to content

Commit

Permalink
Don't collect an error code in hs.application's menu finder, that we …
Browse files Browse the repository at this point in the history
…won't bother to check anyway
  • Loading branch information
cmsj committed Jan 23, 2015
1 parent ce6c203 commit 09ee68e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extensions/application/internal.m
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ AXUIElementRef _findmenuitembyname(lua_State* L, AXUIElementRef app, NSString *n
[toCheck removeObjectIdenticalTo:firstObject];

CFTypeRef cf_title;
AXError error = AXUIElementCopyAttributeValue(element, kAXTitleAttribute, &cf_title);
AXError error;

AXUIElementCopyAttributeValue(element, kAXTitleAttribute, &cf_title);
NSString *title = (__bridge_transfer NSString *)cf_title;

// Check if this is a submenu, if so add its children to the toCheck array
Expand Down

0 comments on commit 09ee68e

Please sign in to comment.