simonedegiacomi / gphotosuploader

Unofficial Google Photos uploader and Go library
GNU General Public License v3.0
99 stars 29 forks source link

fix nil pointer, refactor #10

Closed nmrshll closed 6 years ago

nmrshll commented 6 years ago

auth.CookieCredentials had an interface Credentials for it, getters and setters even though it is the only implementation of Credentials getters and setters are not a very go-like pattern

Also added a few checks for nil pointers and errors here and there while refactoring