Commit a5a6ecd7 authored by Nico Baruna Putra's avatar Nico Baruna Putra

remove read file funciton

parent 595d119c
......@@ -64,7 +64,7 @@ func main() {
}
func checkApi() {
var flag = 0
response, err := http.Get(BASE_URL + API_URL)
if err != nil {
fmt.Print(err.Error())
......@@ -73,7 +73,7 @@ func checkApi() {
//os.Exit(1)
}
if response.StatusCode != 200 || flag == 1 {
if response.StatusCode != 200 {
sendMail("API not response")
Native()
}
......
exit status 2exit status 2exit status 2exit status 2exit status 2exit status 2exit status 2exit status 2exit status 2exit status 2exit status 2exit status 1exit status 1exit status 1exit status 1exit status 1
\ No newline at end of file
exit status 2exit status 2exit status 2exit status 2exit status 2exit status 2exit status 2exit status 2exit status 2exit status 2exit status 2exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1
\ No newline at end of file
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment