Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Throw error if a nil valued username was provided

  • Loading branch information...
commit 688cb752fc3dea3fbe66e33d7485fea18b990064 1 parent 7919b81
Uwe L. Korn authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/scrobbler/user.rb
2  lib/scrobbler/user.rb
@@ -83,7 +83,7 @@ def initialize(data={})
83 83 raise ArgumentError unless data.kind_of?(Hash)
84 84 super(data)
85 85
86   - raise ArgumentError, "Name is required" if @name.empty?
  86 + raise ArgumentError, "Name is required" if @name.nil? or @name.empty?
87 87 end
88 88
89 89 # Get a list of upcoming events that this user is attending.

0 comments on commit 688cb75

Please sign in to comment.
Something went wrong with that request. Please try again.