From 20ee809e540556801fca87a573852d16c2ac7388 Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Fri, 18 May 2018 22:49:25 +0000 Subject: Go server now working --- Unicorn.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Unicorn.go') diff --git a/Unicorn.go b/Unicorn.go index 905cc0a..8042358 100644 --- a/Unicorn.go +++ b/Unicorn.go @@ -1,7 +1,7 @@ package main import ( - "log" + // "log" ) // Unicorn ... @@ -32,11 +32,10 @@ type Unicorn interface { // if it can't find one then gives you a fake one. func GetUnicorn() (unicorn Unicorn, err error) { unicorn, err = NewReal() - if err != nil { - log.Println("Couldn't get a real unicorn, trying a fake one") - unicorn, err = NewFake(uint8(16), uint8(16)) - } - unicorn, err = NewFake(uint8(16), uint8(16)) + //if err != nil { + // log.Println("Couldn't get a real unicorn, trying a fake one") + // unicorn, err = NewFake(uint8(16), uint8(16)) + //} return } @@ -77,4 +76,4 @@ func makePixels(width, height uint8) [][][]uint8 { func rgb(pixel []uint8) (uint8, uint8, uint8) { return pixel[0], pixel[1], pixel[2] -} \ No newline at end of file +} -- cgit v1.2.3-ZIG