Changeset 98 in code


Ignore:
Timestamp:
Oct 15, 2019, 10:06:09 AM (6 years ago)
Author:
mathieu.brunot
Message:

:bug: Simplify DEBUG var init

Signed-off-by: mathieu.brunot <mathieu.brunot@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/morty.go

    r97 r98  
    3737const VERSION = "v0.2.0"
    3838
    39 var DEBUG = os.Getenv("DEBUG")
    40 if DEBUG == "true" {
    41         DEBUG = true
    42 } else {
    43         DEBUG = false
    44 }
     39const DEBUG = os.Getenv("DEBUG") == "true"
    4540
    4641var CLIENT *fasthttp.Client = &fasthttp.Client{
Note: See TracChangeset for help on using the changeset viewer.