CI: bump gotip to February

While here, fix two typos.
pull/478/head
Daniel Martí 2 years ago committed by Andrew LeFevre
parent 4c3b90c051
commit 2d4cc49d50

@ -61,7 +61,7 @@ jobs:
steps: steps:
- name: Install Go - name: Install Go
env: env:
GO_COMMIT: 3b5eec937018be98549dea7067964018f0e5824c # 2022-01-14 GO_COMMIT: e50f0f372b07149e9cf16b8fec80d2d72efe2a87 # 2022-02-11
run: | run: |
cd $HOME cd $HOME
mkdir $HOME/gotip mkdir $HOME/gotip

@ -65,7 +65,7 @@ func ReturnStmt(results ...ast.Expr) *ast.ReturnStmt {
} }
} }
// BlockStmt a block of multiple statments e.g. a function body // BlockStmt a block of multiple statements e.g. a function body
func BlockStmt(stmts ...ast.Stmt) *ast.BlockStmt { func BlockStmt(stmts ...ast.Stmt) *ast.BlockStmt {
return &ast.BlockStmt{List: stmts} return &ast.BlockStmt{List: stmts}
} }

@ -154,7 +154,7 @@ func Obfuscate(file *ast.File, info *types.Info, fset *token.FileSet, linkString
file = astutil.Apply(file, pre, post).(*ast.File) file = astutil.Apply(file, pre, post).(*ast.File)
// some imported constants might not be needed anymore, remove unnessecary imports // some imported constants might not be needed anymore, remove unnecessary imports
for _, imp := range file.Imports { for _, imp := range file.Imports {
path, err := strconv.Unquote(imp.Path.Value) path, err := strconv.Unquote(imp.Path.Value)
if err != nil { if err != nil {

Loading…
Cancel
Save