Skip to content

Commit f4e132b

Browse files
committed
nolint
1 parent 000d10d commit f4e132b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/mongodb-kubernetes-init-ops-manager/mmsconfiguration/edit_mms_configuration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func readLinesFromFile(name string) ([]string, error) {
145145
func writeLinesToFile(name string, lines []string) error {
146146
output := strings.Join(lines, lineBreak)
147147

148-
err := os.WriteFile(name, []byte(output), 0o775)
148+
err := os.WriteFile(name, []byte(output), 0o644) // nolint:gosec
149149
if err != nil {
150150
return xerrors.Errorf("error writing to file %s: %w", name, err)
151151
}
@@ -168,7 +168,7 @@ func appendLinesToFile(name string, lines string) error {
168168

169169
func getOmPropertiesFromEnvVars() map[string]string {
170170
props := map[string]string{}
171-
for _, pair := range os.Environ() {
171+
for _, pair := range os.Environ() { // nolint:forbidigo
172172
if !strings.HasPrefix(pair, omPropertyPrefix) {
173173
continue
174174
}

0 commit comments

Comments
 (0)