Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm committed Feb 27, 2024
1 parent 009694b commit 1a9d177
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions pkg/env/env.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright Nitric Pty Ltd.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// 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 env

import (
Expand All @@ -9,8 +25,7 @@ import (
var defaultEnv = ".env"

func ReadLocalEnv() (map[string]string, error) {
file, err := os.OpenFile(defaultEnv, os.O_RDONLY|os.O_CREATE, 0666)

file, err := os.OpenFile(defaultEnv, os.O_RDONLY|os.O_CREATE, 0o666)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 1a9d177

Please sign in to comment.