aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-12-29 02:49:25 -0800
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-12-29 02:49:25 -0800
commit8d031f13c0e04629d431176e211a31224b7618c0 (patch)
tree9c9547d7698b6c90414bb2f18b8c2fa210c5abf3
parent42a73f91fe101d7da57753d804c40ae95bc62467 (diff)
downloadbun-8d031f13c0e04629d431176e211a31224b7618c0.tar.gz
bun-8d031f13c0e04629d431176e211a31224b7618c0.tar.zst
bun-8d031f13c0e04629d431176e211a31224b7618c0.zip
zig fmt
-rw-r--r--src/cli/shell_completions.zig2
-rw-r--r--src/http/url_path.zig1
-rw-r--r--src/main.zig2
-rw-r--r--src/watcher.zig2
-rw-r--r--src/which_npm_client.zig4
5 files changed, 3 insertions, 8 deletions
diff --git a/src/cli/shell_completions.zig b/src/cli/shell_completions.zig
index 68938d480..08f78d19c 100644
--- a/src/cli/shell_completions.zig
+++ b/src/cli/shell_completions.zig
@@ -47,7 +47,7 @@ pub fn print(this: @This()) void {
const delimiter = if (this.shell == Shell.fish) " " else "\n";
writer.writeAll(this.commands[0]) catch return;
-
+
if (this.descriptions.len > 0) {
writer.writeAll("\t") catch return;
writer.writeAll(this.descriptions[0]) catch return;
diff --git a/src/http/url_path.zig b/src/http/url_path.zig
index 6945119c0..e36ea9d93 100644
--- a/src/http/url_path.zig
+++ b/src/http/url_path.zig
@@ -126,4 +126,3 @@ pub fn parse(possibly_encoded_pathname_: string) !URLPath {
.needs_redirect = needs_redirect,
};
}
-
diff --git a/src/main.zig b/src/main.zig
index 985118812..6939edaf2 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -38,7 +38,7 @@ pub fn main() anyerror!void {
Output.Source.set(&output_source);
defer Output.flush();
-
+
cli.Cli.start(default_allocator, stdout, stderr, MainPanicHandler) catch |err| {
switch (err) {
error.CurrentWorkingDirectoryUnlinked => {
diff --git a/src/watcher.zig b/src/watcher.zig
index 1622be25a..f8de190bd 100644
--- a/src/watcher.zig
+++ b/src/watcher.zig
@@ -736,5 +736,3 @@ pub fn NewWatcher(comptime ContextType: type) type {
}
};
}
-
-
diff --git a/src/which_npm_client.zig b/src/which_npm_client.zig
index aa90622ca..777e717fa 100644
--- a/src/which_npm_client.zig
+++ b/src/which_npm_client.zig
@@ -10,7 +10,5 @@ pub const NPMClient = struct {
bun,
};
- pub fn detect(allocator: *std.mem.Allocator, realpath_buf: *[std.fs.MAX_PATH_BYTES]u8, PATH: string, cwd: string, comptime allow_yarn: bool) !NPMClient {
-
- }
+ pub fn detect(allocator: *std.mem.Allocator, realpath_buf: *[std.fs.MAX_PATH_BYTES]u8, PATH: string, cwd: string, comptime allow_yarn: bool) !NPMClient {}
};