From d7bc5a66852181ff5eb77867940cf39f47be4fa3 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 3 Jun 2018 11:38:17 +0200 Subject: [PATCH] remove useless 'Server.err' --- loader.go | 2 -- types.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/loader.go b/loader.go index ada36ae..a8ee167 100644 --- a/loader.go +++ b/loader.go @@ -3,7 +3,6 @@ package gfw import ( "git.xdrm.io/xdrm-brackets/gfw/checker" "git.xdrm.io/xdrm-brackets/gfw/config" - "git.xdrm.io/xdrm-brackets/gfw/err" ) // Init initilises a new framework instance @@ -19,7 +18,6 @@ func Init(path string, typeChecker *checker.TypeRegistry) (*Server, error) { inst := &Server{ config: nil, Params: make(map[string]interface{}), - err: err.Success, } /* (2) Load configuration */ diff --git a/types.go b/types.go index 1c22f9f..c1ef456 100644 --- a/types.go +++ b/types.go @@ -3,12 +3,10 @@ package gfw import ( "git.xdrm.io/xdrm-brackets/gfw/checker" "git.xdrm.io/xdrm-brackets/gfw/config" - "git.xdrm.io/xdrm-brackets/gfw/err" ) type Server struct { config *config.Controller Params map[string]interface{} Checker *checker.TypeRegistry // type check - err err.Error }