lib/jets/git/user.rb in jets-git-0.2.0 vs lib/jets/git/user.rb in jets-git-0.2.1
- old
+ new
@@ -2,10 +2,10 @@
class User
extend Memoist
include GitCli
def first_name
- name.split(" ").first
+ name.split(" ").first if name # name can be nil
end
def name
git_config["user.name"]
end