Skip to content

Commit

Permalink
Merge pull request #19 from Warashi/fix/hasprefix
Browse files Browse the repository at this point in the history
fix: change hasprefix arg
  • Loading branch information
Warashi authored Jun 8, 2024
2 parents 0f4aae0 + 5f8520b commit 5fffe00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ func getConfig(ctx context.Context) (*config.Config, error) {
}

func parseConfigAddr(addr string) (string, string) {
if strings.HasPrefix(":", addr) {
if strings.HasPrefix(addr, ":") {
return "unix", addr
}
if strings.HasPrefix(addr, "localhost:") {
if strings.HasPrefix("localhost:", addr) {
return "unix", addr
}
return "tcp", addr
Expand Down
2 changes: 1 addition & 1 deletion package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}:
buildGoModule {
pname = "muscat";
version = "2.2.1";
version = "2.2.2";
vendorHash = "sha256-NyXFyuHYoRP6pXz5cmA99IzMawduPhlBs/m4BVC2h6A=";

src = ./.;
Expand Down

0 comments on commit 5fffe00

Please sign in to comment.