mirek / YAML.framework

Proper YAML support for Objective-C. Based on recommended libyaml.

Home Page:http://github.com/mirek/YAML.framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

if (x) [x method]

kornelski opened this issue · comments

You never need to check if object != nil when calling methods on it. Objective-C always checks for nil on every call and guarantees that such calls are safe.

You can replace every:

if (documentObject)
  [documentObject release];

with

[documentObject release];

Thanks, done.