Skip to content

Commit

Permalink
修复警告 | Fixed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Caldis committed Apr 6, 2018
1 parent 31ff514 commit 0c2c3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libs/LoginServiceKit/LoginServiceKit/LoginServiceKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public extension LoginServiceKit {

let loginItemsListSnapshot: NSArray = LSSharedFileListCopySnapshot(loginItemList, nil).takeRetainedValue()
let loginItems = loginItemsListSnapshot as? [LSSharedFileListItem]
LSSharedFileListInsertItemURL(loginItemList, loginItems?.last ?? kLSSharedFileListItemBeforeFirst.takeRetainedValue(), nil, nil, url as CFURL!, nil, nil)
LSSharedFileListInsertItemURL(loginItemList, loginItems?.last ?? kLSSharedFileListItemBeforeFirst.takeRetainedValue(), nil, nil, url as CFURL?, nil, nil)
}

public static func removeLoginItems(at path: String) {
Expand Down

0 comments on commit 0c2c3be

Please sign in to comment.