diff options
author | stuconnolly <stuart02@gmail.com> | 2013-01-24 21:10:57 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2013-01-24 21:10:57 +0000 |
commit | 7342e8cb80a945b258aa4d52d0d74fe4f1690ae4 (patch) | |
tree | 5894d54b7899fa582d4064f4a9df47687f92949c /Source/SPTextView.m | |
parent | ceb7ac070de284fea209962bf7352bffc1788218 (diff) | |
download | sequelpro-7342e8cb80a945b258aa4d52d0d74fe4f1690ae4.tar.gz sequelpro-7342e8cb80a945b258aa4d52d0d74fe4f1690ae4.tar.bz2 sequelpro-7342e8cb80a945b258aa4d52d0d74fe4f1690ae4.zip |
Fix more warnings.
Diffstat (limited to 'Source/SPTextView.m')
-rw-r--r-- | Source/SPTextView.m | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/SPTextView.m b/Source/SPTextView.m index 5e324d28..aeef2276 100644 --- a/Source/SPTextView.m +++ b/Source/SPTextView.m @@ -3460,11 +3460,8 @@ static inline NSPoint SPPointOnLine(NSPoint a, NSPoint b, CGFloat t) { return NS } // Check size and NSFileType -#ifndef SP_REFACTOR - NSDictionary *attr = [[NSFileManager defaultManager] fileAttributesAtPath:filepath traverseLink:YES]; -#else NSDictionary *attr = [[NSFileManager defaultManager] attributesOfItemAtPath:filepath error:nil]; -#endif + if(attr) { NSNumber *filesize = [attr objectForKey:NSFileSize]; |