Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Bez625 committed Sep 19, 2024
1 parent 6634edc commit f095de5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions license-updater/licenseupdater.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ package main

import (
"encoding/json"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"io/fs"
"log"
"os"
"path/filepath"
"strings"

"github.com/spf13/pflag"
"github.com/spf13/viper"
)

func main() {
Expand All @@ -37,7 +38,7 @@ func main() {
licenseString := getLicenseString(workingDir)

var files []string
walkFunc := func(path string, info fs.DirEntry, err error) error {
walkFunc := func(path string, info fs.DirEntry, _ error) error {
if !info.IsDir() && strings.HasSuffix(path, ".go") {
files = append(files, path)
}
Expand Down Expand Up @@ -78,7 +79,7 @@ func updateFileWithLicense(filePath, licenseString string) error {
newContents += line + "\n"
}
}
err = os.WriteFile(filePath, []byte(newContents), 0644)
err = os.WriteFile(filePath, []byte(newContents), 0o600)
if err != nil {
return err
}
Expand Down
1 change: 1 addition & 0 deletions services/accountmanager/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package utils

import apiv1 "github.com/attestantio/go-eth2-client/api/v1"
Expand Down

0 comments on commit f095de5

Please sign in to comment.