Skip to content

Commit

Permalink
fix lint error SA1019
Browse files Browse the repository at this point in the history
  • Loading branch information
iglov committed Nov 30, 2022
1 parent 027e0eb commit 649c13b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,9 @@ permissions:
contents: read

jobs:
linter:
uses: ./.github/workflows/linter.yml

build:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
needs:
- linter
steps:
- name: Set up Go
uses: actions/setup-go@v3
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,13 @@ concurrency:
cancel-in-progress: true

on:
workflow_run:
workflows: ["build"]
branches: [main]
types:
- completed
push:
tags:
- "v*.*.*"

jobs:
build:
uses: ./.github/workflows/build.yml

release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Setup Go
uses: actions/setup-go@v3
Expand Down
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net"
"os"
Expand Down Expand Up @@ -68,7 +67,7 @@ func main() {
log.Fatal(err)
}

content, err := ioutil.ReadFile(*datasetGeo)
content, err := os.ReadFile(*datasetGeo)
if err != nil {
log.Fatal("Error when opening file: ", err)
}
Expand Down

0 comments on commit 649c13b

Please sign in to comment.