On Tue, Dec 26, 2017 at 9:36 PM, Timothy Quinn <[email protected]> wrote:
> I am completely a N00b for Go so please pardon my ignorance. I'm reverse > engineering some code > Reverse engineering or reading? :) If you have questions about how something works, please ask. The code is there also, of course, but don't go to extreme efforts to find something if we can point you in the right direction instead. > and came across the following line in camput/blobs.go which had me > scratching my head: > > bref, err = blob.RefFromHash(s1), nil > > Why is this written this way? Is this just a one line trick to clear out > error instead of using two lines of code like: > err = nil > bref = blob.RefFromHash(s1) > Yeah, that code is old & gross. I just cleaned it up in https://camlistore.googlesource.com/camlistore/+/ab66af2b3b1fb82af4976f47f7c96e33e85b56b1%5E%21/ -- You received this message because you are subscribed to the Google Groups "Camlistore" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
